mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Shorten setting QSessionManager restart hint
This commit is contained in:
parent
87a042b029
commit
4a0ee22670
1 changed files with 2 additions and 9 deletions
|
@ -181,16 +181,9 @@ int Sandbox::start() {
|
||||||
|
|
||||||
// https://github.com/telegramdesktop/tdesktop/issues/948
|
// https://github.com/telegramdesktop/tdesktop/issues/948
|
||||||
// and https://github.com/telegramdesktop/tdesktop/issues/5022
|
// and https://github.com/telegramdesktop/tdesktop/issues/5022
|
||||||
const auto restartHint = [](QSessionManager &manager) {
|
connect(this, &QGuiApplication::saveStateRequest, [](auto &manager) {
|
||||||
manager.setRestartHint(QSessionManager::RestartNever);
|
manager.setRestartHint(QSessionManager::RestartNever);
|
||||||
};
|
});
|
||||||
|
|
||||||
connect(
|
|
||||||
this,
|
|
||||||
&QGuiApplication::saveStateRequest,
|
|
||||||
this,
|
|
||||||
restartHint,
|
|
||||||
Qt::DirectConnection);
|
|
||||||
|
|
||||||
LOG(("Connecting local socket to %1...").arg(_localServerName));
|
LOG(("Connecting local socket to %1...").arg(_localServerName));
|
||||||
_localSocket.connectToServer(_localServerName);
|
_localSocket.connectToServer(_localServerName);
|
||||||
|
|
Loading…
Add table
Reference in a new issue