Do not reload page when toggling dark mode
This change had actually been applied in previous commit d3ee652
by mistake.
This commit is contained in:
@@ -209,7 +209,7 @@ Toggle scrollbars. This will reload the page.
|
|||||||
Toggle caret browsing. This will reload the page.
|
Toggle caret browsing. This will reload the page.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-d
|
.B Ctrl\-Shift\-d
|
||||||
Toggle dark mode. This will reload the page.
|
Toggle dark mode.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-i
|
.B Ctrl\-Shift\-i
|
||||||
Toggle auto-loading of images. This will reload the page.
|
Toggle auto-loading of images. This will reload the page.
|
||||||
|
|||||||
@@ -778,7 +778,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
|
|||||||
g_object_set(gtk_settings_get_default(),
|
g_object_set(gtk_settings_get_default(),
|
||||||
"gtk-application-prefer-dark-theme", a->i, NULL);
|
"gtk-application-prefer-dark-theme", a->i, NULL);
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
case DiskCache:
|
case DiskCache:
|
||||||
webkit_web_context_set_cache_model(c->context, a->i ?
|
webkit_web_context_set_cache_model(c->context, a->i ?
|
||||||
WEBKIT_CACHE_MODEL_WEB_BROWSER :
|
WEBKIT_CACHE_MODEL_WEB_BROWSER :
|
||||||
|
|||||||
Reference in New Issue
Block a user