Make prelaunch sticky & kill ImGui prelaunch

This commit is contained in:
Luke Street
2026-05-02 10:44:59 -06:00
parent 9b4a9a6bd9
commit e1c201f4bd
4 changed files with 45 additions and 12 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ Prelaunch::Prelaunch() : Document(kDocumentSource) {
if (auto* menuList = mDocument->GetElementById("menu-list")) {
const bool hasValidPath = is_selected_path_valid();
mMenuButtons.push_back(std::make_unique<Button>(menuList, hasValidPath ? "Start Game" : "Select Disk Image"));
mMenuButtons.back()->on_pressed([this] {
mMenuButtons.back()->on_pressed([] {
if (!is_selected_path_valid()) {
open_iso_picker();
return;
@@ -224,7 +224,7 @@ bool Prelaunch::focus() {
}
bool Prelaunch::handle_nav_command(Rml::Event& event, NavCommand cmd) {
return Document::handle_nav_command(event, cmd);
return false;
}
} // namespace dusk::ui