fix: only show color scheme toast if change is required (#973)

This commit is contained in:
Aman Harwara
2022-04-14 00:03:40 +05:30
committed by GitHub
parent a91a1cbddd
commit 4405f3bbf2

View File

@@ -198,7 +198,7 @@ export class ThemeManager extends ApplicationService {
const isDefaultThemePreferredAndNotActive =
themeIdentifier === DefaultThemeIdentifier && activeTheme
if (isPreferredThemeNotActive || isDefaultThemePreferredAndNotActive) {
if (isPreferredThemeNotActive && isDefaultThemePreferredAndNotActive) {
this.showColorSchemeToast(setTheme)
}
}