forked from github_mirror/framelesshelper
core: fix wrong override condition
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
e1cf95f208
commit
f7f8fc3dd0
|
@ -309,7 +309,8 @@ bool FramelessManagerPrivate::usePureQtImplementation()
|
|||
|
||||
void FramelessManagerPrivate::setOverrideTheme(const SystemTheme theme)
|
||||
{
|
||||
if (systemTheme() == theme) {
|
||||
if ((!m_overrideTheme.has_value() && (theme == SystemTheme::Unknown))
|
||||
|| (m_overrideTheme.has_value() && (m_overrideTheme.value() == theme))) {
|
||||
return;
|
||||
}
|
||||
if (theme == SystemTheme::Unknown) {
|
||||
|
|
Loading…
Reference in New Issue