|
@@ -250,7 +250,7 @@ int main(int argc, char** argv)
|
|
|
if (!app_state.selected_index.has_value())
|
|
|
return;
|
|
|
app_state.results[app_state.selected_index.value()].activate();
|
|
|
- exit(0);
|
|
|
+ GUI::Application::the()->quit();
|
|
|
};
|
|
|
text_box.on_up_pressed = [&]() {
|
|
|
if (!app_state.visible_result_count)
|
|
@@ -278,7 +278,7 @@ int main(int argc, char** argv)
|
|
|
mark_selected_item();
|
|
|
};
|
|
|
text_box.on_escape_pressed = []() {
|
|
|
- exit(0);
|
|
|
+ GUI::Application::the()->quit();
|
|
|
};
|
|
|
|
|
|
db.on_new_results = [&](auto results) {
|
|
@@ -298,7 +298,7 @@ int main(int argc, char** argv)
|
|
|
match.set_subtitle(result.subtitle());
|
|
|
match.on_selected = [&result]() {
|
|
|
result.activate();
|
|
|
- exit(0);
|
|
|
+ GUI::Application::the()->quit();
|
|
|
};
|
|
|
}
|
|
|
|