Fixed the accessing of methods

This commit is contained in:
Morph
2019-10-27 05:03:57 -04:00
parent 69f0b6e5c7
commit 41ef97585a
2 changed files with 4 additions and 4 deletions

View File

@@ -36,8 +36,8 @@ void OnDockedModeChanged(bool last_state, bool new_state) {
// change to one and it will handle both automatically
auto applet_oe = sm.GetService<Service::AM::AppletOE>("appletOE");
auto applet_ae = sm.GetService<Service::AM::AppletAE>("appletAE");
bool is_notification_enabled =
Service::AM::ISelfController::GetOperationModeChangedNotification();
auto isc = sm.GetService<Service::AM::ISelfController>("ISelfController");
bool is_notification_enabled = isc->GetOperationModeChangedNotification();
bool has_signalled = false;
if (applet_oe != nullptr && is_notification_enabled) {

View File

@@ -1914,8 +1914,8 @@ void GMainWindow::OnCaptureScreenshot() {
auto& sm{Core::System::GetInstance().ServiceManager()};
auto applet_oe = sm.GetService<Service::AM::AppletOE>("appletOE");
auto applet_ae = sm.GetService<Service::AM::AppletAE>("appletAE");
bool is_notification_enabled =
Service::AM::ISelfController::GetAlbumImageTakenNotificationEnabled();
auto isc = sm.GetService<Service::AM::ISelfController>("ISelfController");
bool is_notification_enabled = isc->GetAlbumImageTakenNotificationEnabled();
bool has_signalled = false;
if (applet_oe != nullptr && is_notification_enabled) {
applet_oe->GetMessageQueue()->ScreenshotTaken();