Skip to content

Commit 05d555e

Browse files
committed
tools/script_manager - let the shortcut system know that script_manager
widgets belong to script_manager
1 parent 3f6a3e2 commit 05d555e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/script_manager.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ local current_branch = get_current_repo_branch(LUA_DIR)
865865
local clean = is_repo_clean(repo_data)
866866
local repo = LUA_DIR
867867

868+
-- ensure shortcuts module knows widgets belong to script_manager
869+
870+
script_manager_running_script = "script_manager"
871+
868872
if current_branch then
869873
if sm.executables.git and clean and
870874
(current_branch == "master" or string.match(current_branch, "^API%-")) then -- only make changes to clean branches
@@ -1137,7 +1141,7 @@ sm.widgets.main_box = dt.new_widget("box"){
11371141
sm.widgets.main_stack
11381142
}
11391143

1140-
1144+
script_manager_running_script = nil
11411145
-- - - - - - - - - - - - - - - - - - - - - - - -
11421146
-- D A R K T A B L E I N T E G R A T I O N
11431147
-- - - - - - - - - - - - - - - - - - - - - - - -

0 commit comments

Comments
 (0)