From 47fa3e798c9e336712f6d882b8d9badc7adf5089 Mon Sep 17 00:00:00 2001 From: icedream Date: Fri, 16 Oct 2015 08:23:15 +0200 Subject: [PATCH] Try to hide news in GUI using time conditions. Might save on a tiny little bit of CPU time... I guess? --- services/ts3client.iced | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/ts3client.iced b/services/ts3client.iced index 826a6a2..af1688f 100644 --- a/services/ts3client.iced +++ b/services/ts3client.iced @@ -224,6 +224,9 @@ module.exports = class TS3ClientService extends services.Service [ "Misc", "LastShownNewsBrowserVersion", "4" ] [ "News", "NewsClosed", "1" ] [ "News", "Language", "en" ] + [ "News", "LastModified", (new Date()).toISOString() ] + [ "News", "NextCheck", (new Date() + 1000 * 60 * 60 * 24 * 360).toISOString() ] + [ "Notifications", "SoundPack", "nosounds" ] [ "Plugins", "teamspeak_control_plugin", "false" ] [ "Plugins", "clientquery_plugin", "false" ] [ "Plugins", "lua_plugin", "false" ] @@ -260,7 +263,6 @@ module.exports = class TS3ClientService extends services.Service agc: if config.get("ts3-agc") then "true" else "false" echo_reduction_db: 10 } ] - [ "Notifications", "SoundPack", "nosounds" ] [ "Statistics", "ParticipateStatistics", "0" ] [ "Statistics", "ConfirmedParticipation", "1" ] ], defer()