Move unpause detection back to feed

develop
Robob27 2023-02-03 00:58:48 -05:00
parent d5ada27ed4
commit 717b133d58
1 changed files with 5 additions and 6 deletions

@ -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<string> lines;
static const std::string pause_message =
"Pause confirmations until you exit this screen";