summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadoon AlBader <sadoon@soulserv.xyz>2021-09-25 10:15:17 +0300
committerrafa_99 <raroma09@gmail.com>2021-10-15 23:07:18 +0100
commit0857582e39260728eb13b1d4d0d13d569accd85e (patch)
tree6eac751b5a7ba052ae5c16d71de76122d3c3d471
parent0243f6a4986298b40cc078022b595a002c7d155b (diff)
use macros instead of reinventing the wheel
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index cdb6dd6..06f0fae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -640,6 +640,13 @@ void vb_statusbar_update(Client *c)
c->state.scroll_percent = * (guint16*) ( &c->state.scroll_percent );
#endif
+ if ( c->config.statusbar_show_settings ) {
+ /* show js, cookies, and local storage status */
+ g_string_append_printf(status, " js: %s |", GET_BOOL(c, "scripts") ? "on" : "off");
+ g_string_append_printf(status, " cookies: %s |", GET_CHAR(c, "cookie-accept") );
+ g_string_append_printf(status, " storage: %s", GET_BOOL(c, "html5-local-storage") ? "on" : "off");
+ }
+
/* show the scroll status */
if (c->state.scroll_max == 0) {
g_string_append(status, " All");