Skip to content

Commit e26a807

Browse files
corrected file path in registry
1 parent 87440d6 commit e26a807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperiond/systray.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void SysTray::createTrayIcon()
121121
bool SysTray::getCurrentAutorunState()
122122
{
123123
QSettings reg("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", QSettings::NativeFormat);
124-
if (reg.value("Hyperion", 0).toString() == qApp->applicationFilePath())
124+
if (reg.value("Hyperion", 0).toString() == qApp->applicationFilePath().replace('/', '\\'))
125125
{
126126
autorunAction->setText(tr("&Disable autostart"));
127127
return true;
@@ -139,7 +139,7 @@ void SysTray::setAutorunState()
139139
QSettings reg("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", QSettings::NativeFormat);
140140
(currentState)
141141
? reg.remove("Hyperion")
142-
: reg.setValue("Hyperion", qApp->applicationFilePath());
142+
: reg.setValue("Hyperion", qApp->applicationFilePath().replace('/', '\\'));
143143
#endif
144144
}
145145

0 commit comments

Comments
 (0)