mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:36:28 +00:00
UI: Don't rewrite startup link.
This commit is contained in:
parent
a356f2b2ee
commit
ad1780d3aa
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user