change to dropdown for updates

This commit is contained in:
2022-04-02 23:21:05 +02:00
parent 3f7fb7c84b
commit 52f67c3a11

View File

@@ -47,15 +47,18 @@ impl Widgets<ToolboxSettingsDialogModel, AppModel> for ToolboxSettingsDialogWidg
}, },
add = &adw::PreferencesPage { add = &adw::PreferencesPage {
add = &adw::PreferencesGroup { add = &adw::PreferencesGroup {
set_title: "Update",
add = &adw::PreferencesRow {
set_title: "Updates", set_title: "Updates",
add = &adw::PreferencesRow {
set_title: "Update Policy",
set_child = Some(&adw::ActionRow) { set_child = Some(&adw::ActionRow) {
set_title: "Update automatically", set_title: "Update Policy",
add_suffix = &gtk::Box { add_suffix = &gtk::Box {
append = &gtk::Switch { append = &gtk::DropDown::from_strings(&[
"Update automatically",
"Notify about updates",
"Do nothing"
]) {
set_margin_all: 15, set_margin_all: 15,
set_tooltip_text: Some("Update applications automatically"),
}, },
} }
}, },