mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:06:05 +08:00
Merge pull request #11573 from fieldOfView/feature_tray_icon_preference
Add a preference to make tray icon optional
This commit is contained in:
commit
242f8264da
@ -73,6 +73,9 @@ UM.PreferencesPage
|
|||||||
var defaultTheme = UM.Preferences.getValue("general/theme")
|
var defaultTheme = UM.Preferences.getValue("general/theme")
|
||||||
setDefaultTheme(defaultTheme)
|
setDefaultTheme(defaultTheme)
|
||||||
|
|
||||||
|
UM.Preferences.resetPreference("general/use_tray_icon")
|
||||||
|
trayIconCheckbox.checked = boolCheck(UM.Preferences.getValue("cura/use_tray_icon"))
|
||||||
|
|
||||||
UM.Preferences.resetPreference("cura/single_instance")
|
UM.Preferences.resetPreference("cura/single_instance")
|
||||||
singleInstanceCheckbox.checked = boolCheck(UM.Preferences.getValue("cura/single_instance"))
|
singleInstanceCheckbox.checked = boolCheck(UM.Preferences.getValue("cura/single_instance"))
|
||||||
UM.Preferences.resetPreference("cura/single_instance_clear_before_load")
|
UM.Preferences.resetPreference("cura/single_instance_clear_before_load")
|
||||||
@ -329,6 +332,23 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
width: childrenRect.width;
|
||||||
|
height: childrenRect.height;
|
||||||
|
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Show an icon and notifications in the system notification area.")
|
||||||
|
|
||||||
|
UM.CheckBox
|
||||||
|
{
|
||||||
|
id: trayIconCheckbox
|
||||||
|
checked: boolCheck(UM.Preferences.getValue("general/use_tray_icon"))
|
||||||
|
onClicked: UM.Preferences.setValue("general/use_tray_icon", checked)
|
||||||
|
|
||||||
|
text: catalog.i18nc("@option:check", "Add icon to system tray *");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: languageCaption
|
id: languageCaption
|
||||||
@ -337,6 +357,7 @@ UM.PreferencesPage
|
|||||||
text: catalog.i18nc("@label", "*You will need to restart the application for these changes to have effect.")
|
text: catalog.i18nc("@label", "*You will need to restart the application for these changes to have effect.")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
font.italic: true
|
font.italic: true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user