Merge pull request #1062 from Guldoman/PR_fix_logview_on_error
Fix opening `LogView` when reloading customizations
This commit is contained in:
commit
f611556f1a
|
@ -68,6 +68,9 @@ local function reload_customizations()
|
|||
local user_error = not core.load_user_directory()
|
||||
local project_error = not core.load_project_module()
|
||||
if user_error or project_error then
|
||||
-- Use core.add_thread to delay opening the LogView, as opening
|
||||
-- it directly here disturbs the normal save operations.
|
||||
core.add_thread(function()
|
||||
local LogView = require "core.logview"
|
||||
local rn = core.root_view.root_node
|
||||
for _,v in pairs(core.root_view.root_node:get_children()) do
|
||||
|
@ -77,6 +80,7 @@ local function reload_customizations()
|
|||
end
|
||||
end
|
||||
command.perform("core:open-log")
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue