@@ -229,19 +229,19 @@ namespace LDefaultApps
229
229
null ,
230
230
disable_autostart_default);
231
231
232
+ dbus_backend. SessionSet (" disable_autostart" , " " , return_combobox_text(disable_autostart_combobox));
233
+ var auto_vbox = builder. get_object(" manual_autostart_vbox" ) as Gtk . VBox ;
234
+ var running_apps = builder. get_object(" running_apps_vbox" ) as Gtk . VBox ;
232
235
233
- disable_autostart_combobox. changed. connect (() = > {
234
- dbus_backend. SessionSet (" disable_autostart" , " " , return_combobox_text(disable_autostart_combobox));
235
- var auto_vbox = builder. get_object(" manual_autostart_vbox" ) as Gtk . VBox ;
236
- var running_apps = builder. get_object(" running_apps_vbox" ) as Gtk . VBox ;
237
-
238
- var known_apps_box = builder. get_object(" autostart_known_box" ) as Gtk . HBox ;
239
- var known_apps = builder. get_object(" autostart_treeview" ) as Gtk . TreeView ;
236
+ var known_apps_box = builder. get_object(" autostart_known_box" ) as Gtk . HBox ;
237
+ var known_apps = builder. get_object(" autostart_treeview" ) as Gtk . TreeView ;
240
238
241
- init_list_view(known_apps);
242
- load_autostart(Environment . get_variable(" XDG_CURRENT_DESKTOP" ));
243
- known_apps. set_model (get_autostart_list ());
239
+ init_list_view(known_apps);
240
+ load_autostart(Environment . get_variable(" XDG_CURRENT_DESKTOP" ));
241
+ known_apps. set_model (get_autostart_list ());
242
+ known_apps_box. hide_all();
244
243
244
+ disable_autostart_combobox. changed. connect (() = > {
245
245
if (return_combobox_text(disable_autostart_combobox) == " all" )
246
246
{
247
247
auto_vbox. hide_all();
0 commit comments