Skip to content

Commit 7340089

Browse files
committed
Swap enable/disable autostart text
1 parent 643da65 commit 7340089

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hyperiond/systray.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void SysTray::createBaseTrayMenu()
115115
});
116116

117117
#ifdef _WIN32
118-
_autorunAction = createAction(tr("&Disable autostart"), ":/autorun.svg", [this]() {
118+
_autorunAction = createAction(tr("&Enable autostart"), ":/autorun.svg", [this]() {
119119
setAutorunState();
120120
});
121121
#endif
@@ -674,7 +674,7 @@ bool SysTray::getCurrentAutorunState()
674674
QToolButton* btn = qobject_cast<QToolButton*>(wa->defaultWidget());
675675
if (btn)
676676
{
677-
btn->setText(QStringLiteral(" ") + (enabled ? tr("&Disable autostart") : tr("&Enable autostart")));
677+
btn->setText(QStringLiteral(" ") + (!enabled ? tr("&Disable autostart") : tr("&Enable autostart")));
678678
}
679679
}
680680
return enabled;

0 commit comments

Comments
 (0)