mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
update
This commit is contained in:
parent
1e017b337a
commit
0f8b969140
@ -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();
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user