This commit is contained in:
u 2025-03-24 00:03:34 +03:00 committed by Mahdi
parent 1e017b337a
commit 0f8b969140
3 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ void MainWindow::neko_start(int _id) {
msg.setDefaultButton(cancel);
msg.setEscapeButton(cancel);
int r = msg.exec();
int r = msg.exec() - 2;
if (r == 0) {
GetMainWindow()->StopVPNProcess();
}

View File

@ -268,7 +268,7 @@ void DialogBasicSettings::on_set_custom_icon_clicked() {
msg.setEscapeButton(cancel);
auto c = msg.exec();
auto c = msg.exec() - 2;
if (c == 0) {
auto fn = QFileDialog::getOpenFileName(this, QObject::tr("Select"), QDir::currentPath(),
"*.png", nullptr, QFileDialog::Option::ReadOnly);

View File

@ -61,7 +61,7 @@ void DialogVPNSettings::on_troubleshooting_clicked() {
msg.setDefaultButton(cancel);
msg.setEscapeButton(cancel);
auto r = msg.exec();
auto r = msg.exec() - 2;
if (r == 0) {
GetMainWindow()->StopVPNProcess();
}