@@ -141,7 +141,7 @@ namespace Scratch {
141141 { ACTION_OPEN_FOLDER , action_open_folder, " s" },
142142 { ACTION_OPEN_PROJECT , action_open_project },
143143 { ACTION_COLLAPSE_ALL_FOLDERS , action_collapse_all_folders },
144- { ACTION_ORDER_FOLDERS , action_order_folders },
144+ { ACTION_ORDER_FOLDERS , action_order_folders, null , " true " },
145145 { ACTION_PREFERENCES , action_preferences },
146146 { ACTION_REVERT , action_revert },
147147 { ACTION_SAVE , action_save },
@@ -347,6 +347,10 @@ namespace Scratch {
347347 sidebar_action. set_state (saved_state. get_boolean (" sidebar-visible" ));
348348 update_toolbar_button (ACTION_TOGGLE_SIDEBAR , saved_state. get_boolean (" sidebar-visible" ));
349349
350+ // var order_folders_action = Utils.action_from_group (ACTION_ORDER_FOLDERS, actions);
351+ // order_folders_action.set_state (saved_state.get_boolean ("order-folders"));
352+ // update_toolbar_button (ACTION_ORDER_FOLDERS, saved_state.get_boolean ("order-folders"));
353+
350354 var outline_action = Utils . action_from_group (ACTION_TOGGLE_OUTLINE , actions);
351355 outline_action. set_state (saved_state. get_boolean (" outline-visible" ));
352356 update_toolbar_button (ACTION_TOGGLE_OUTLINE , saved_state. get_boolean (" outline-visible" ));
@@ -1126,7 +1130,10 @@ namespace Scratch {
11261130 }
11271131
11281132 private void action_order_folders () {
1129- folder_manager_view. order_folders ();
1133+ var action = Utils . action_from_group (ACTION_ORDER_FOLDERS , actions);
1134+ var to_show = ! action. get_state (). get_boolean ();
1135+ action. set_state (to_show);
1136+ folder_manager_view. order_folders = to_show;
11301137 }
11311138
11321139 private void action_save () {
0 commit comments