2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add Platform::AutostartSupported

This commit is contained in:
Ilya Fedin
2020-05-29 21:49:39 +04:00
committed by John Preston
parent 413ddf285e
commit e098922a4b
6 changed files with 22 additions and 2 deletions

View File

@@ -174,6 +174,10 @@ void Application::run() {
psNewVersion();
}
if (cAutoStart() && !Platform::AutostartSupported()) {
cSetAutoStart(false);
}
if (cLaunchMode() == LaunchModeAutoStart && !cAutoStart()) {
psAutoStart(false, true);
App::quit();