From 639dab4da5b7f9c5ec404fcc05c07d278df7701f Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 19 Dec 2020 21:08:58 +0100 Subject: [PATCH] Reset scrollbar when export's off --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index a7756c3..8054e8c 100644 --- a/init.lua +++ b/init.lua @@ -1903,8 +1903,16 @@ local function fields(player, _f) elseif _f.export_rcp or _f.export_usg then if _f.export_rcp then data.export_rcp = not data.export_rcp + + if not data.export_rcp then + data.scrbar_rcp = 1 + end else data.export_usg = not data.export_usg + + if not data.export_usg then + data.scrbar_usg = 1 + end end elseif (sb_rcp and sub(sb_rcp, 1, 3) == "CHG") or (sb_usg and sub(sb_usg, 1, 3) == "CHG") then