@@ -71,7 +71,6 @@ public class Files.View.Window : Hdy.ApplicationWindow {
7171 {" go-to" , action_go_to, " s" },
7272 {" zoom" , action_zoom, " s" },
7373 {" view-mode" , action_view_mode, " u" , " 0" },
74- {" singleclick-select" , null , null , " false" , change_state_single_click_select},
7574 {" tabhistory-restore" , action_tabhistory_restore, " s" },
7675 {" folders-before-files" , null , null , " true" , change_state_folders_before_files},
7776 {" forward" , action_forward, " i" },
@@ -123,6 +122,7 @@ public class Files.View.Window : Hdy.ApplicationWindow {
123122 add_action (app_settings. create_action (" show-local-thumbnails" ));
124123 add_action (app_settings. create_action (" show-remote-thumbnails" ));
125124 add_action (app_settings. create_action (" show-hiddenfiles" ));
125+ add_action (app_settings. create_action (" singleclick-select" ));
126126
127127 add_action_entries (WIN_ENTRIES , this );
128128 undo_actions_set_insensitive ();
@@ -280,9 +280,6 @@ public class Files.View.Window : Hdy.ApplicationWindow {
280280
281281 /* * Apply preferences */
282282 var prefs = Files.Preferences.get_default (); // Bound to settings schema by Application
283- get_action ("show -local -thumbnails ").set_state (prefs .show_local_thumbnails );
284- get_action ("show -remote -thumbnails ").set_state (prefs .show_remote_thumbnails );
285- get_action ("singleclick -select ").set_state (prefs .singleclick_select );
286283 get_action ("folders -before -files ").set_state (prefs .sort_directories_first );
287284
288285 button_forward.slow_press.connect (() => {
@@ -1038,12 +1035,6 @@ public class Files.View.Window : Hdy.ApplicationWindow {
10381035 doing_undo_redo = false ;
10391036 }
10401037
1041- public void change_state_single_click_select (GLib .SimpleAction action ) {
1042- bool state = ! action. state. get_boolean ();
1043- action. set_state (new GLib .Variant .boolean (state));
1044- Files . Preferences . get_default (). singleclick_select = state;
1045- }
1046-
10471038 public void change_state_folders_before_files (GLib .SimpleAction action ) {
10481039 bool state = ! action. state. get_boolean ();
10491040 action. set_state (new GLib .Variant .boolean (state));
0 commit comments