fix undeclared file variable in user-theme/extension.js
Eliminates the warning message about assigning to an undeclared variable when User Theme extension is used. Fixes BZ #651374.
This commit is contained in:
committed by
John Stowers
parent
63dd27c4f5
commit
72583b1bf6
@@ -26,14 +26,14 @@ ThemeManager.prototype = {
|
||||
|
||||
if (_themeName) {
|
||||
let _userCssStylesheet = GLib.get_home_dir() + '/.themes/' + _themeName + '/gnome-shell/gnome-shell.css';
|
||||
file = Gio.file_new_for_path(_userCssStylesheet);
|
||||
let file = Gio.file_new_for_path(_userCssStylesheet);
|
||||
if (file.query_exists(null))
|
||||
_stylesheet = _userCssStylesheet;
|
||||
else {
|
||||
let sysdirs = GLib.get_system_data_dirs();
|
||||
for (let i = 0; i < sysdirs.length; i++) {
|
||||
_userCssStylesheet = sysdirs[i] + '/themes/' + _themeName + '/gnome-shell/gnome-shell.css';
|
||||
file = Gio.file_new_for_path(_userCssStylesheet);
|
||||
let file = Gio.file_new_for_path(_userCssStylesheet);
|
||||
if (file.query_exists(null)) {
|
||||
_stylesheet = _userCssStylesheet;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user