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:
Joshua Goins
2024-09-02 10:46:54 -04:00
parent 4b51855528
commit e3c30f5bb3

View File

@@ -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 {