mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
some changes
This commit is contained in:
@@ -60,9 +60,9 @@ AmneziaApplication::~AmneziaApplication()
|
||||
|
||||
m_vpnConnectionThread.quit();
|
||||
|
||||
if (!m_vpnConnectionThread.wait(5000)) {
|
||||
if (!m_vpnConnectionThread.wait(4000)) {
|
||||
m_vpnConnectionThread.terminate();
|
||||
m_vpnConnectionThread.wait();
|
||||
m_vpnConnectionThread.wait(1000);
|
||||
}
|
||||
|
||||
if (m_engine) {
|
||||
|
||||
@@ -141,9 +141,8 @@ void PageController::closeApplication()
|
||||
w->close();
|
||||
}
|
||||
QTimer::singleShot(0, qApp, []() { qApp->exit(0); });
|
||||
#else
|
||||
qApp->quit();
|
||||
#endif
|
||||
qApp->quit();
|
||||
}
|
||||
|
||||
void PageController::setDrawerDepth(const int depth)
|
||||
|
||||
@@ -50,11 +50,8 @@ SystemTrayNotificationHandler::SystemTrayNotificationHandler(QObject* parent) :
|
||||
for (auto w : qApp->topLevelWidgets()) {
|
||||
w->close();
|
||||
}
|
||||
|
||||
QTimer::singleShot(0, qApp, []() { qApp->exit(0); });
|
||||
#else
|
||||
qApp->quit();
|
||||
#endif
|
||||
qApp->quit();
|
||||
});
|
||||
|
||||
m_systemTrayIcon.setContextMenu(&m_menu);
|
||||
|
||||
Reference in New Issue
Block a user