Skip to content

Use 'folder-open' icon when folder has been opened or expanded. (#474 #148 #153)#506

Merged
danirabbit merged 11 commits intomasterfrom
use-folder-open-for-expanded
Jul 25, 2018
Merged

Use 'folder-open' icon when folder has been opened or expanded. (#474 #148 #153)#506
danirabbit merged 11 commits intomasterfrom
use-folder-open-for-expanded

Conversation

@jeremypw
Copy link
Copy Markdown
Contributor

@jeremypw jeremypw commented May 20, 2018

Fixes #474 Fixes #148 Fixes #153

Note that this PR causes the "folder-open" icon to be used if the folder is open any how. i.e if it is open in another tab or window or another Miller column or as an expanded row in list view. It relies on the GOF.Directory.Async object being removed from the cache when it is not being displayed anywhere.

In order for this to work properly it was necessary to incorporate a fix for ViewContainer destruction and this in turn required fixing a regression in dragging a tab to a new window (which was only working because the ViewContainer was not being destroyed when it should). Reluctantly a timeout had to be used to overcome a crash being caused by some undiagnosed race condition when dragging a duplicate tab out of the window.

If the "folder-open" state is to be confined to individual views, then it will be necessary to implement a more complicated solution involving adding another column to the fm-list-model which does not derive its data from a GOF file (GOF file objects are shared between views).

@jeremypw jeremypw added the Status: In Progress A related pull request is being worked on label May 20, 2018
@jeremypw jeremypw added Status: In Progress A related pull request is being worked on and removed Status: In Progress A related pull request is being worked on labels May 20, 2018
@jeremypw
Copy link
Copy Markdown
Contributor Author

Regression not fully resolved.

@jeremypw jeremypw removed the Status: In Progress A related pull request is being worked on label May 21, 2018
@jeremypw
Copy link
Copy Markdown
Contributor Author

Regression fixed

@jeremypw jeremypw changed the title Use 'folder-open' icon when folder has been opened or expanded Use 'folder-open' icon when folder has been opened or expanded. (#474 #148 #153) May 30, 2018
@danirabbit
Copy link
Copy Markdown
Member

Looks good UX wise :)

Jeremy Wootten added 3 commits May 31, 2018 10:29
* Do not reference viewcontainer inside nested closure.
* Close viewcontainer before creating new window, when tab moved.
@jeremypw
Copy link
Copy Markdown
Contributor Author

The need for a long timeout no longer needed (race condition was found and fixed). Reverted to original Idle loop, which is still needed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use "folder-open" for open folders in list and column view Objects not destroyed when tab closed Crash when refreshing multiple windows rapidly

2 participants