From 5de2a04b8c519495d0591f8794b755237d0c482b Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 13 May 2024 11:47:13 -0300 Subject: [PATCH] Added season setting to ignore the bookmark /run Details.no_bookmark = true: won't open the bookmark. /run Details.no_bookmark_on_combat = true: won't open the bookmark while in combat. --- frames/window_switch.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frames/window_switch.lua b/frames/window_switch.lua index 466647b3..841c2ac8 100644 --- a/frames/window_switch.lua +++ b/frames/window_switch.lua @@ -693,6 +693,14 @@ function Details.switch:ShowMe(instancia) return else + if (Details.no_bookmark) then + return + end + + if (Details.no_bookmark_on_combat and InCombatLockdown()) then + return + end + if (Details.switch.segments_blocks) then Details.switch:ClearSegmentBlocks() end