👷 handle better dialog cancel signal

This commit is contained in:
Vladislav Nepogodin 2021-10-04 20:27:36 +04:00
parent 64bb4ac6a4
commit 2a344cc8f6
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
1 changed files with 4 additions and 1 deletions

View File

@ -106,8 +106,11 @@ void quick_message(Gtk::Window* parent, const std::string& message) {
std::vector<std::string> argv{}; std::vector<std::string> argv{};
if (result == GTK_RESPONSE_NO) { if (result == GTK_RESPONSE_NO) {
argv = {fix_path("/usr/local/bin/calamares-offline.sh")}; argv = {fix_path("/usr/local/bin/calamares-offline.sh")};
} else { } else if (result == GTK_RESPONSE_YES) {
argv = {fix_path("/usr/local/bin/calamares-online.sh")}; argv = {fix_path("/usr/local/bin/calamares-online.sh")};
} else {
gtk_widget_destroy(dialog);
return;
} }
int child_stdout{}; int child_stdout{};