mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] Fix SuspendTimer::Fire that caused two suspensions
This commit is contained in:
committed by
EmilieNumworks
parent
ce1cdaacc3
commit
f6861e4301
@@ -8,7 +8,9 @@ SuspendTimer::SuspendTimer(AppsContainer * container) :
|
||||
}
|
||||
|
||||
bool SuspendTimer::fire() {
|
||||
/* We could just call m_container->suspend(), but we want to notify all
|
||||
* responders in the responder chain that the calculator will be switched off,
|
||||
* so we use an event to switch off the calculator. */
|
||||
m_container->dispatchEvent(Ion::Events::OnOff);
|
||||
m_container->suspend();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user