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

desktopwindow: sort devices first #68

Merged
merged 1 commit into from Mar 30, 2021
Merged

desktopwindow: sort devices first #68

merged 1 commit into from Mar 30, 2021

Conversation

ghost
Copy link

@ghost ghost commented Mar 30, 2021

It's not the nicest way, but it works and I couldn't find another way of sorting within the model. Essentially we stop the 'folder first' option for the desktop, as otherwise the 'mountpoint' devices are shown last after all the folders. Then we sort by owner, because devices happen to have a numeric value for the owner and the rest have the user's name. So they appear first...

Signed-off-by: Chris Moore [email protected]

#60

@probonopd please review

It's not the nicest way, but it works and I couldn't find another way of sorting within the model. Essentially we stop the 'folder first' option for the desktop, as otherwise the 'mountpoint' devices are shown last after all the folders. Then we sort by owner, because devices happen to have a numeric value for the owner and the rest have the user's name. So they appear first...

Signed-off-by: Chris Moore <[email protected]>
@probonopd
Copy link
Member

Thank you very much. This partially improves the issue; the intended behavior is described in #60 (comment).

@probonopd probonopd merged commit f84dd00 into helloSystem:master Mar 30, 2021
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.

2 participants