Display weather information for any location on Earth in the GNOME Shell
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
The next version will remove the legacy Lang class as well as darksky as they are ending their API by the end of the year.
1. Why do you use version for Soup? (line 47 extension.js)? It's getting imported in GNOME Shell before you do that: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/environment.js#L31-41 2. Lang is a deprecated module. Please remove it for the next version: https://gjs.guide/extensions/review-guidelines/review-guidelines.html#general-advice Learn how to remove Lang from your code: https://gjs.guide/guides/gjs/legacy-class-syntax.html 3. Null out `openweatherMenu` in `disable()`. 4. What is the use case for those timeouts in prefs.js? If you need any help with your extension you can ask us on: - [GNOME Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions
I was getting an error with Soup after forking the repo: "Requiring Soup but it has 2 versions available; use imports.gi.versions to pick one". Requiring the specific version fixed the location search issue. It looks like the timeouts were put there by the previous dev to prevent it from continuously updating on refresh. Removing Lang is next on my to-do list. I assume I need to upload a new version to add the null in disable()? Thanks!
Prefs code needs some clean up for sure and yes, you need to upload a new version for that. Please fix it for the next version.
btw, remove `localedir` from `metadata.json`.
Honestly, quite a bit of the code needs some cleaning up lol. Would adding the null to disable and removing the localedir in metadata.json be ok to get a new version approved for users? Then fixing prefs and removing lang in the version after that.
Yes! You can send the next one with those two fixes.
I just noticed this version was active haha, so I'll do more cleanup before submitting the next version. Thanks again! :)