tools/script_manager - don't set lib visibility unless we are in

lighttable view
This commit is contained in:
Bill Ferguson
2024-01-24 13:16:42 -05:00
parent 3b8e802e42
commit 4735be470a

View File

@@ -397,7 +397,7 @@ local function activate(script)
if err ~= true then
log.msg(log.debug, "got lib data")
script.data = err
if script.data.destroy_method and script.data.destroy_method == "hide" and script.data.show then
if script.data.destroy_method and script.data.destroy_method == "hide" and script.data.show and dt.gui.current_view().id == "lighttable" then
script.data.show()
end
else