UI: Don't rewrite startup link.

This commit is contained in:
Nodir Temirkhodjaev 2017-12-23 10:48:04 +05:00
parent a356f2b2ee
commit ad1780d3aa

View File

@ -26,6 +26,9 @@ bool FortSettings::startWithWindows() const
void FortSettings::setStartWithWindows(bool start) void FortSettings::setStartWithWindows(bool start)
{ {
if (start == startWithWindows())
return;
const QString linkPath = startupShortcutPath(); const QString linkPath = startupShortcutPath();
if (start) { if (start) {
FileUtil::linkFile(qApp->applicationFilePath(), linkPath); FileUtil::linkFile(qApp->applicationFilePath(), linkPath);