-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix select after rename; fix rename folder; disallow rename if unsaved edits #1386
Conversation
Is this still a draft? |
@colinkiama Oops, no - I forgot to change the status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like you fixed the issue with the files.
However, after you rename a folder, the first file you select doesn't open in the editor.
Maybe view.unselect_call ()
needs to be called again after you finish editing the folder name?
@colinkiama Thanks for the review! Your right that everything should be deselected after renaming - I'll check why a file may become selected after a folder rename. |
@colinkiama Hopefully fixed now. |
Great! That issue has been fixed however, there's now another problem: |
@colinkiama Thanks for being thorough! This is puzzling as the item is set back to being unselectable after editing ends yet it appears still selected and stops the listbox selecting anything else for some reason. Investigating. |
@colinkiama I think I fixed it - it was due to some bug in SourceList I think. Seems to work if you set "selectable" to false after unselecting all 🤷 |
Fixes #1385
A Timeout had to be used to detect when renaming was cancelled as Granite Sourcelist does not produce any notification of this 😞 so to the
editing
property (read-only) had to be polled.