Skip to content
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

User-Command open-file | NoneType-error due to unnecessary call to __set_label_on_file_selection #108

Closed
GiorgosXou opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working Solved

Comments

@GiorgosXou
Copy link
Owner

User-Command 'open' called with a file while self.__clicked_file=None results to Nonetype error due to unnecessary call to __set_label_on_file_selection

eg. in cmds.conf if you have something like: gi | open | 'directory':'~/Desktop/xou/notes/informations.md'| - Informations -

and press gi you are likely to have an error of nonetype if no file selected prior to the command

fixed by removing __set_label...:

return self.__set_label_on_file_selection()

self.__set_label_on_file_selection()

@GiorgosXou GiorgosXou added bug Something isn't working Solved labels Apr 25, 2024
@GiorgosXou GiorgosXou changed the title User-Command open-file NoneType-error due to unnecessary call to __set_label_on_file_selection User-Command open-file | NoneType-error due to unnecessary call to __set_label_on_file_selection Apr 25, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Solved
Projects
None yet
Development

No branches or pull requests

1 participant