Skip to content

Fix syncthing plugin #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ngencokamin
Copy link

Syncthing wasn't working properly. Was throwing errors about st not being defined any time the user types in albert, and the error [crit:albert.python] Unable to cast Python instance of type <class 'NoneType'> to C++ type 'QString' when opening settings, displaying a blank window instead of the api key field. This PR:

  • Adds handling to make sure the api key is never None type, fixing the settings issue
  • Adds handling for missing and invalid api keys
    • Shows distinct messages for each scenarios

Screenshots
image
Valid api key

image
Invalid api key

image
No api key

@ngencokamin
Copy link
Author

I reverted my changes on lines 58-64. I'd changed them while experimenting with why settings was broken and forgot to revert. As an aside, as far as I can tell the option does nothing, but I added it back just to avoid changing anything I didn't need to.

@ngencokamin
Copy link
Author

Oh forgot to include, here's a before and after of the settings menu
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant