mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-10 23:19:02 +08:00
Add option to preference to switch between stable & beta for update checker
CURA-7689
This commit is contained in:
parent
b7ee3298c2
commit
d0654aa4d0
@ -118,6 +118,8 @@ UM.PreferencesPage
|
||||
sendDataCheckbox.checked = boolCheck(UM.Preferences.getValue("info/send_slice_info"))
|
||||
UM.Preferences.resetPreference("info/automatic_update_check")
|
||||
checkUpdatesCheckbox.checked = boolCheck(UM.Preferences.getValue("info/automatic_update_check"))
|
||||
|
||||
UM.Preferences.resetPreference("info/latest_update_source")
|
||||
}
|
||||
|
||||
ScrollView
|
||||
@ -785,6 +787,40 @@ UM.PreferencesPage
|
||||
}
|
||||
}
|
||||
|
||||
ExclusiveGroup { id: curaUpdatesGroup }
|
||||
UM.TooltipArea
|
||||
{
|
||||
width: childrenRect.width
|
||||
height: visible ? childrenRect.height : 0
|
||||
text: catalog.i18nc("@info:tooltip", "When checking for updates, only check for stable releases.")
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
RadioButton
|
||||
{
|
||||
text: catalog.i18nc("@option:radio", "Stable releases only")
|
||||
exclusiveGroup: curaUpdatesGroup
|
||||
enabled: checkUpdatesCheckbox.checked
|
||||
checked: UM.Preferences.getValue("info/latest_update_source") == "stable"
|
||||
onClicked: UM.Preferences.setValue("info/latest_update_source", "stable")
|
||||
}
|
||||
}
|
||||
UM.TooltipArea
|
||||
{
|
||||
width: childrenRect.width
|
||||
height: visible ? childrenRect.height : 0
|
||||
text: catalog.i18nc("@info:tooltip", "When checking for updates, check for both stable and for beta releases.")
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
RadioButton
|
||||
{
|
||||
text: catalog.i18nc("@option:radio", "Stable and Beta releases")
|
||||
exclusiveGroup: curaUpdatesGroup
|
||||
enabled: checkUpdatesCheckbox.checked
|
||||
checked: UM.Preferences.getValue("info/latest_update_source") == "beta"
|
||||
onClicked: UM.Preferences.setValue("info/latest_update_source", "beta")
|
||||
}
|
||||
}
|
||||
|
||||
UM.TooltipArea
|
||||
{
|
||||
width: childrenRect.width
|
||||
|
Loading…
x
Reference in New Issue
Block a user