From 52f67c3a11af5e1c6542ed7a22866319c47bbce7 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Sat, 2 Apr 2022 23:21:05 +0200 Subject: [PATCH] change to dropdown for updates --- src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5e62ad3..8a05164 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,15 +47,18 @@ impl Widgets for ToolboxSettingsDialogWidg }, add = &adw::PreferencesPage { add = &adw::PreferencesGroup { - set_title: "Update", + set_title: "Updates", add = &adw::PreferencesRow { - set_title: "Updates", + 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"), }, } },