mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
change to dropdown for updates
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -47,15 +47,18 @@ impl Widgets<ToolboxSettingsDialogModel, AppModel> for ToolboxSettingsDialogWidg
|
||||
},
|
||||
add = &adw::PreferencesPage {
|
||||
add = &adw::PreferencesGroup {
|
||||
set_title: "Update",
|
||||
add = &adw::PreferencesRow {
|
||||
set_title: "Updates",
|
||||
add = &adw::PreferencesRow {
|
||||
set_title: "Update Policy",
|
||||
set_child = Some(&adw::ActionRow) {
|
||||
set_title: "Update automatically",
|
||||
set_title: "Update Policy",
|
||||
add_suffix = >k::Box {
|
||||
append = >k::Switch {
|
||||
append = >k::DropDown::from_strings(&[
|
||||
"Update automatically",
|
||||
"Notify about updates",
|
||||
"Do nothing"
|
||||
]) {
|
||||
set_margin_all: 15,
|
||||
set_tooltip_text: Some("Update applications automatically"),
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user