[desktop] fix bug 58765
This commit is contained in:
parent
a583b7c660
commit
994a58c8b1
|
@ -1943,9 +1943,13 @@ define([
|
||||||
|
|
||||||
Common.NotificationCenter.on({
|
Common.NotificationCenter.on({
|
||||||
'uitheme:changed' : function (name) {
|
'uitheme:changed' : function (name) {
|
||||||
var theme = Common.UI.Themes.get(name);
|
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
|
||||||
|
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));
|
||||||
|
} else {
|
||||||
|
const theme = Common.UI.Themes.get(name);
|
||||||
if ( theme )
|
if ( theme )
|
||||||
native.execCommand("uitheme:changed", JSON.stringify({name:name, type:theme.type}));
|
native.execCommand("uitheme:changed", JSON.stringify({name:name, type:theme.type}));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue