Skip to content

Add Minimize Button#1472

Merged
overheadhunter merged 6 commits into
developfrom
feature/minimize
Dec 18, 2020
Merged

Add Minimize Button#1472
overheadhunter merged 6 commits into
developfrom
feature/minimize

Conversation

@overheadhunter

Copy link
Copy Markdown
Member

Basically this adds two more options to the general Preferences:

Screenshot 2020-12-17 at 14 53 28

It is worth mentioning, that the minimize button is still obligatory when no tray icon exists, in which case the corresponding checkbox will be invisible.

This also rewires interactions between the Dagger components Launcher, TrayMenu and FxApplication.

@overheadhunter overheadhunter requested a review from infeo December 17, 2020 13:58

@infeo infeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this PR was kinda overdue^^

It is good, but i have a fundamental question:
Why is the general tray icon support (i don't mean the actual support, but the intended one) controlled by a system property?

For an installed application, these can be seen as not changeable (e.g. inside an appimage), hence this is mainly for debugging, or not?
Additionally, our settings object depends with change also on the environment. As a consequence there is no "default" settings object anymore, but an environment dependent one. This can be beneficial, but also a pitfall. But in the end this is only done once for each user account on a system,.

The bottom line: I can't see, why default value for tray icon is not sufficient.

Comment thread main/ui/src/main/java/org/cryptomator/ui/launcher/FxApplicationStarter.java Outdated
Comment thread main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayIconController.java Outdated
@overheadhunter

overheadhunter commented Dec 18, 2020

Copy link
Copy Markdown
Member Author

Why is the general tray icon support (i don't mean the actual support, but the intended one) controlled by a system property?

Because on Linux we should disable tray support by default (due to all the linked issues) and have the users explicitly enable it again (if they know the DE supports it or they want a buggy tray icon anyway). While on macOS and Windows we want it to be the other way round.

The system property allows such differentiation per installer.

@overheadhunter overheadhunter merged commit b3fa6bb into develop Dec 18, 2020
@overheadhunter overheadhunter deleted the feature/minimize branch December 18, 2020 14:58
@infeo

infeo commented May 10, 2021

Copy link
Copy Markdown
Member

For Documentation: The system property to control tray menu enabled or not is cryptomator.showTrayIcon=true

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A minimize option for the cryptomator app on windows

2 participants