diff --git a/src/input_handler.cc b/src/input_handler.cc index a682215e..da738706 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -194,11 +194,17 @@ public: context().hooks().run_hook("NormalBegin", "", context()); } - void on_disabled(bool) override + void on_disabled(bool temporary) override { m_idle_timer.set_next_date(TimePoint::max()); m_fs_check_timer.set_next_date(TimePoint::max()); + if (not temporary and m_hooks_disabled) + { + context().hooks_disabled().unset(); + m_hooks_disabled = false; + } + context().hooks().run_hook("NormalEnd", "", context()); }