fix setOverrideTheme render multiple times (#228)
* fix setOverrideTheme render multiple times * fix setOverrideTheme render multiple times * fix encoding utf8 * fix setOverrideTheme render multiple times --------- Co-authored-by: 朱子楚\zhuzi <zhuzichu520@outlook.com>
This commit is contained in:
parent
e7da37d06a
commit
e090359d9a
|
@ -309,6 +309,9 @@ bool FramelessManagerPrivate::usePureQtImplementation()
|
|||
|
||||
void FramelessManagerPrivate::setOverrideTheme(const SystemTheme theme)
|
||||
{
|
||||
if(theme==systemTheme()){
|
||||
return;
|
||||
}
|
||||
if (theme == SystemTheme::Unknown) {
|
||||
m_overrideTheme = std::nullopt;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue