fix(commandline): prevent theme switch when opening the commanline from the footer (sanidhyas3s) (#5163)

fixes #5103

Co-authored-by: Jack <jack@monkeytype.com>
This commit is contained in:
Sanidhya Singh 2024-03-02 02:53:43 +05:30 committed by GitHub
parent 9a0d6bd5a9
commit 4c550c7d9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}