is (not) application

This commit is contained in:
Exverge 2024-03-24 19:58:09 +01:00
parent dd5d36a796
commit c9bb915949

View file

@ -181,8 +181,9 @@ Result ILibraryAppletSelfAccessor::ExitProcessAndReturn() {
if(!m_applet->caller_applet.expired()) { if(!m_applet->caller_applet.expired()) {
std::shared_ptr<Applet> applet = m_applet->caller_applet.lock(); std::shared_ptr<Applet> applet = m_applet->caller_applet.lock();
if(applet == nullptr) R_SUCCEED(); if(applet == nullptr) R_SUCCEED();
LOG_INFO(Service_AM, "HAS CALLER"); LOG_INFO(Service_AM, "tracking caller applet");
system.GetAppletManager().TrackApplet(applet, true); // todo: is_application is set to false as window_system doesn't allow re-tracking without replacing the application
system.GetAppletManager().TrackApplet(applet, false);
applet->lifecycle_manager.SetFocusState(FocusState::InFocus); applet->lifecycle_manager.SetFocusState(FocusState::InFocus);
} }
R_SUCCEED(); R_SUCCEED();