From ed7649c93ad3d05d844838d4c8e4a2c0f33fa613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 27 Nov 2014 14:24:49 +0000 Subject: [PATCH] main: Fix unsetting of custom stylesheets Since moving to a GFile based API in commit 642bf2b7782819, setThemeStylesheet() no longer accepts %null to revert to the default theme. We should have some way to revert to the default and the least intrusive option is to return to the old behavior, so do that. --- js/ui/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/main.js b/js/ui/main.js index 9467d564b..36d759169 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -271,7 +271,7 @@ function getThemeStylesheet() { * Set the theme CSS file that the shell will load */ function setThemeStylesheet(cssStylesheet) { - _cssStylesheet = Gio.File.new_for_path(cssStylesheet); + _cssStylesheet = cssStylesheet ? Gio.File.new_for_path(cssStylesheet) : null; } /**