applet: Move common IsRunning underlying variable to the Applet class

Gets rid of basic duplication.
This commit is contained in:
Lioncash 2016-12-07 17:11:39 -05:00
parent 6f71fb2954
commit f1709b8b59
8 changed files with 19 additions and 28 deletions

View file

@ -70,7 +70,7 @@ ResultCode SoftwareKeyboard::StartImpl(Service::APT::AppletStartupParameter cons
DrawScreenKeyboard();
started = true;
is_running = true;
return RESULT_SUCCESS;
}
@ -113,7 +113,7 @@ void SoftwareKeyboard::Finalize() {
message.sender_id = static_cast<u32>(id);
Service::APT::SendParameter(message);
started = false;
is_running = false;
}
}
} // namespace