mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
update
This commit is contained in:
parent
34ba9576c5
commit
94a954d5f6
@ -924,7 +924,12 @@ void MainWindow::on_menu_exit_triggered() {
|
||||
//
|
||||
if (exit_reason == 1) {
|
||||
QDir::setCurrent(QApplication::applicationDirPath());
|
||||
#ifdef Q_OS_WIN
|
||||
QFile::copy("./updater.exe", "./updater.old");
|
||||
QProcess::startDetached("./updater.old", QStringList{});
|
||||
#else
|
||||
QProcess::startDetached("./updater", QStringList{});
|
||||
#endif
|
||||
} else if (exit_reason == 2 || exit_reason == 3 || exit_reason == 4) {
|
||||
QDir::setCurrent(QApplication::applicationDirPath());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user