File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ void SysTray::createTrayIcon()
121
121
bool SysTray::getCurrentAutorunState ()
122
122
{
123
123
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 ( ' / ' , ' \\ ' ) )
125
125
{
126
126
autorunAction->setText (tr (" &Disable autostart" ));
127
127
return true ;
@@ -139,7 +139,7 @@ void SysTray::setAutorunState()
139
139
QSettings reg (" HKEY_CURRENT_USER\\ Software\\ Microsoft\\ Windows\\ CurrentVersion\\ Run" , QSettings::NativeFormat);
140
140
(currentState)
141
141
? reg.remove (" Hyperion" )
142
- : reg.setValue (" Hyperion" , qApp->applicationFilePath ());
142
+ : reg.setValue (" Hyperion" , qApp->applicationFilePath (). replace ( ' / ' , ' \\ ' ) );
143
143
#endif
144
144
}
145
145
You can’t perform that action at this time.
0 commit comments