fix(ui): open panel on problem setup

This commit is contained in:
Barrett Ruth 2025-10-23 10:52:13 -04:00
parent ad17855532
commit 92b6ce31f9
2 changed files with 80 additions and 43 deletions

View file

@ -186,6 +186,7 @@ function M.setup_problem(problem_id, language)
state.get_problem_id() or '',
lang
)
require('cp.ui.panel').ensure_io_view()
end
state.set_provisional(nil)
return
@ -209,6 +210,7 @@ function M.setup_problem(problem_id, language)
state.get_problem_id() or '',
lang
)
require('cp.ui.panel').ensure_io_view()
end)
end
@ -247,7 +249,11 @@ function M.navigate_problem(direction)
return
end
require('cp.ui.panel').disable()
local active_panel = state.get_active_panel()
if active_panel == 'run' then
require('cp.ui.panel').disable()
end
M.setup_contest(platform, contest_id, problems[new_index].id)
end