From 877b31b33e63c8a9df2649daedfb26a24d2e4515 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Thu, 22 Nov 2018 20:51:53 -0500 Subject: software_keyboard: Signal state changed event upon construction Previously, ILibraryAppletAccessor would signal upon creation of any applet, but this is incorrect. A flag inside of the applet code determines whether or not creation should signal state change and swkbd happens to be one of these applets. --- src/core/hle/service/am/applets/software_keyboard.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index 981bdec51..40984ffa9 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -38,7 +38,12 @@ static Core::Frontend::SoftwareKeyboardParameters ConvertToFrontendParameters( return params; } -SoftwareKeyboard::SoftwareKeyboard() = default; +SoftwareKeyboard::SoftwareKeyboard() { + // Some applets require this to be signalled on applet creation, some do not. Internally, this + // is done by a flag in the applet module, but for simplicity SoftwareKeyboard is one of the + // applets with this flag. + broker.SignalStateChanged(); +} SoftwareKeyboard::~SoftwareKeyboard() = default; -- cgit v1.2.3