diff --git a/src/tui.cpp b/src/tui.cpp index 4b81e0a..6527030 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -1911,10 +1911,13 @@ void init() noexcept { case 2: tui::system_rescue_menu(); break; - default: - screen.ExitLoopClosure()(); + default: { + if (utils::exit_done()) { + screen.ExitLoopClosure()(); + } break; } + } }; detail::menu_widget(menu_entries, ok_callback, &selected, &screen); }