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:
zhuzichu 2023-05-22 19:15:51 +08:00 committed by GitHub
parent e7da37d06a
commit e090359d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -309,6 +309,9 @@ bool FramelessManagerPrivate::usePureQtImplementation()
void FramelessManagerPrivate::setOverrideTheme(const SystemTheme theme) void FramelessManagerPrivate::setOverrideTheme(const SystemTheme theme)
{ {
if(theme==systemTheme()){
return;
}
if (theme == SystemTheme::Unknown) { if (theme == SystemTheme::Unknown) {
m_overrideTheme = std::nullopt; m_overrideTheme = std::nullopt;
} else { } else {