do not minimize app on Windows auto start (fix #BC-97)
This commit is contained in:
parent
afc03daa22
commit
a7c8e8db90
1 changed files with 2 additions and 4 deletions
|
|
@ -267,9 +267,7 @@ void App::setAutoStart(bool enabled) {
|
||||||
|
|
||||||
void App::setAutoStart(bool enabled) {
|
void App::setAutoStart(bool enabled) {
|
||||||
QSettings settings(AutoStartSettingsFilePath, QSettings::NativeFormat);
|
QSettings settings(AutoStartSettingsFilePath, QSettings::NativeFormat);
|
||||||
QString parameters;
|
if (enabled) settings.setValue(EXECUTABLE_NAME, QDir::toNativeSeparators(applicationFilePath()));
|
||||||
if (!mSettings->getExitOnClose()) parameters = " --minimized";
|
|
||||||
if (enabled) settings.setValue(EXECUTABLE_NAME, QDir::toNativeSeparators(applicationFilePath()) + parameters);
|
|
||||||
else settings.remove(EXECUTABLE_NAME);
|
else settings.remove(EXECUTABLE_NAME);
|
||||||
|
|
||||||
mAutoStart = enabled;
|
mAutoStart = enabled;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue