mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
Add a preference to make tray icon optional
This commit is contained in:
parent
60c91b5680
commit
44e0c0adff
1 changed files with 20 additions and 0 deletions
|
@ -76,6 +76,9 @@ UM.PreferencesPage
|
|||
var defaultTheme = UM.Preferences.getValue("general/theme")
|
||||
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")
|
||||
singleInstanceCheckbox.checked = boolCheck(UM.Preferences.getValue("cura/single_instance"))
|
||||
UM.Preferences.resetPreference("cura/single_instance_clear_before_load")
|
||||
|
@ -314,6 +317,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 (restart required)");
|
||||
}
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
//: Spacer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue