Skip to content

Commit

Permalink
fix(commandline): prevent theme switch when opening the commanline fr…
Browse files Browse the repository at this point in the history
…om the footer (sanidhyas3s) (#5163)

fixes #5103

Co-authored-by: Jack <jack@monkeytype.com>
  • Loading branch information
sanidhyas3s and Miodec authored Mar 1, 2024
1 parent 9a0d6bd commit 4c550c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/commandline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function showFound(): void {
if (!/font/gi.test(obj.id)) {
UpdateConfig.previewFontFamily(Config.fontFamily);
}
if (obj.hover) obj.hover();
if (obj.hover && !obj.id.startsWith("changeTheme")) obj.hover();
return;
}
}
Expand Down

0 comments on commit 4c550c7

Please sign in to comment.