theme: don't parse the default stylesheet twice
If we don't have a custom theme, set the stylesheet as the default only, so we don't parse it twice.
This commit is contained in:
parent
c1518dc728
commit
f78e17ce02
@ -260,11 +260,7 @@ function loadTheme() {
|
||||
let themeContext = St.ThemeContext.get_for_stage (global.stage);
|
||||
let previousTheme = themeContext.get_theme();
|
||||
|
||||
let cssStylesheet = _defaultCssStylesheet;
|
||||
if (_cssStylesheet != null)
|
||||
cssStylesheet = _cssStylesheet;
|
||||
|
||||
let theme = new St.Theme ({ application_stylesheet: cssStylesheet,
|
||||
let theme = new St.Theme ({ application_stylesheet: _cssStylesheet,
|
||||
default_stylesheet: _defaultCssStylesheet });
|
||||
|
||||
if (previousTheme) {
|
||||
|
Loading…
Reference in New Issue
Block a user