Skip to content

Commit 74bb870

Browse files
Fix issue when config subcommand toggles autostart (#3940)
1 parent f2d52f2 commit 74bb870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ int main(int argc, char* argv[])
544544
bool mainColor = parser.isSet(mainColorOption);
545545
bool contrastColor = parser.isSet(contrastColorOption);
546546
bool check = parser.isSet(checkOption);
547-
bool someFlagSet =
548-
(filename || tray || mainColor || contrastColor || check);
547+
bool someFlagSet = (autostart || filename || tray || mainColor ||
548+
contrastColor || check);
549549
if (check) {
550550
AbstractLogger err = AbstractLogger::error(AbstractLogger::Stderr);
551551
bool ok = ConfigHandler().checkForErrors(&err);

0 commit comments

Comments
 (0)