From 717b133d58da5da0326634dd6f7666c5980fa17b Mon Sep 17 00:00:00 2001 From: Robob27 Date: Fri, 3 Feb 2023 00:58:48 -0500 Subject: [PATCH] Move unpause detection back to feed --- plugins/confirm.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/confirm.cpp b/plugins/confirm.cpp index a55d567b8..3e19d1c04 100644 --- a/plugins/confirm.cpp +++ b/plugins/confirm.cpp @@ -307,9 +307,12 @@ public: } conf_wrapper *wrapper = confirmations[this->get_id()]; - if(wrapper->is_paused()) + if(wrapper->is_paused()) { + std::string concernedFocus = this->get_focus_string(); + if(!Gui::matchFocusString(this->get_focus_string(), this->match_prefix())) + wrapper->set_paused(false); return false; - else if (state == INACTIVE) + } else if (state == INACTIVE) { if(mouseExit) { if(intercept_key("MOUSE_RIGHT") && set_state(ACTIVE)) { @@ -373,10 +376,6 @@ public: return state == ACTIVE; } void render() { - conf_wrapper *wrapper = confirmations[this->get_id()]; - std::string concernedFocus = this->get_focus_string(); - if(!Gui::matchFocusString(this->get_focus_string(), this->match_prefix())) - wrapper->set_paused(false); static vector lines; static const std::string pause_message = "Pause confirmations until you exit this screen";