Settings: Hide "minimize to system tray" when system tray is disabled
We do this for the state events setting, so let's do it here too.
This commit is contained in:
@@ -45,7 +45,7 @@ FormCard.FormCardPage {
|
|||||||
id: minimizeDelegate
|
id: minimizeDelegate
|
||||||
text: i18n("Minimize to system tray on startup")
|
text: i18n("Minimize to system tray on startup")
|
||||||
checked: NeoChatConfig.minimizeToSystemTrayOnStartup
|
checked: NeoChatConfig.minimizeToSystemTrayOnStartup
|
||||||
visible: Controller.supportSystemTray && !Kirigami.Settings.isMobile
|
visible: Controller.supportSystemTray && !Kirigami.Settings.isMobile && NeoChatConfig.systemTray
|
||||||
enabled: NeoChatConfig.systemTray && !NeoChatConfig.isMinimizeToSystemTrayOnStartupImmutable
|
enabled: NeoChatConfig.systemTray && !NeoChatConfig.isMinimizeToSystemTrayOnStartupImmutable
|
||||||
onToggled: {
|
onToggled: {
|
||||||
NeoChatConfig.minimizeToSystemTrayOnStartup = checked;
|
NeoChatConfig.minimizeToSystemTrayOnStartup = checked;
|
||||||
@@ -56,6 +56,7 @@ FormCard.FormCardPage {
|
|||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
above: minimizeDelegate
|
above: minimizeDelegate
|
||||||
below: automaticallyDelegate
|
below: automaticallyDelegate
|
||||||
|
visible: minimizeDelegate.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormCheckDelegate {
|
FormCard.FormCheckDelegate {
|
||||||
|
|||||||
Reference in New Issue
Block a user