👷 handle better dialog cancel signal
This commit is contained in:
parent
64bb4ac6a4
commit
2a344cc8f6
|
@ -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{};
|
||||||
|
|
Loading…
Reference in New Issue