|
7 | 7 | from pathlib import Path |
8 | 8 | from threading import Thread |
9 | 9 | from savedesktop.globals import * |
10 | | -from savedesktop.gui.items_dialog import FolderSwitchRow, FlatpakAppsDialog, itemsDialog |
11 | 10 | from savedesktop.gui.more_options_dialog import MoreOptionsDialog |
12 | 11 | from savedesktop.gui.synchronization_dialogs import InitSetupDialog, SetDialog, CloudDialog |
13 | 12 |
|
@@ -38,6 +37,7 @@ def __init__(self, *args, **kwargs): |
38 | 37 | # primary menu section |
39 | 38 | self.general_menu = Gio.Menu() |
40 | 39 | self.general_menu.append(_("Keyboard shortcuts"), 'app.shortcuts') |
| 40 | + self.general_menu.append(_("Select configuration items"), 'app.items-dialog') |
41 | 41 | self.general_menu.append(_("About app"), 'app.about') |
42 | 42 | self.main_menu.append_section(None, self.general_menu) |
43 | 43 |
|
@@ -187,21 +187,6 @@ def save_desktop(self): |
187 | 187 | self.saveEntry.set_text(settings["filename"]) |
188 | 188 | self.lbox_e.append(self.saveEntry) |
189 | 189 |
|
190 | | - # Button for opening dialog for selecting items that will be included to the config archive |
191 | | - self.itemsButton = Gtk.Button.new_from_icon_name("go-next-symbolic") |
192 | | - self.itemsButton.set_valign(Gtk.Align.CENTER) |
193 | | - self.itemsButton.add_css_class("flat") |
194 | | - self.itemsButton.connect("clicked", self._open_items_dialog) |
195 | | - |
196 | | - # Action row for opening dialog for selecting items that will be included to the config archive |
197 | | - self.items_row = Adw.ActionRow.new() |
198 | | - self.items_row.set_title(title=_("Items to include in the configuration archive")) |
199 | | - self.items_row.set_use_markup(True) |
200 | | - self.items_row.set_title_lines(5) |
201 | | - self.items_row.add_suffix(self.itemsButton) |
202 | | - self.items_row.set_activatable_widget(self.itemsButton) |
203 | | - self.lbox_e.append(child=self.items_row) |
204 | | - |
205 | 190 | self.lbox_e.set_show_separators(True) |
206 | 191 |
|
207 | 192 | # section for showing dialog with more options |
@@ -234,12 +219,6 @@ def _open_more_options_dialog(self, w): |
234 | 219 | self.more_options_dialog.choose(self, None, None, None) |
235 | 220 | self.more_options_dialog.present(self) |
236 | 221 |
|
237 | | - # open a dialog for selecting the items to include in the configuration archive |
238 | | - def _open_items_dialog(self, w): |
239 | | - self.items_dialog = itemsDialog(self) |
240 | | - self.items_dialog.choose(self, None, None, None) |
241 | | - self.items_dialog.present(self) |
242 | | - |
243 | 222 | # Import configuration page |
244 | 223 | def import_desktop(self): |
245 | 224 | self.importBox.set_valign(Gtk.Align.CENTER) |
|
0 commit comments