summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-11-22 20:51:53 -0500
committerGravatar Zach Hilman2018-12-03 17:26:26 -0500
commit877b31b33e63c8a9df2649daedfb26a24d2e4515 (patch)
tree913c16c3a77004dbdb8e7f8c86d2329ba04f2627 /src/core
parentMerge pull request #1842 from lioncash/slot (diff)
downloadyuzu-877b31b33e63c8a9df2649daedfb26a24d2e4515.tar.gz
yuzu-877b31b33e63c8a9df2649daedfb26a24d2e4515.tar.xz
yuzu-877b31b33e63c8a9df2649daedfb26a24d2e4515.zip
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/am/applets/software_keyboard.cpp7
1 files changed, 6 insertions, 1 deletions
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(
38 return params; 38 return params;
39} 39}
40 40
41SoftwareKeyboard::SoftwareKeyboard() = default; 41SoftwareKeyboard::SoftwareKeyboard() {
42 // Some applets require this to be signalled on applet creation, some do not. Internally, this
43 // is done by a flag in the applet module, but for simplicity SoftwareKeyboard is one of the
44 // applets with this flag.
45 broker.SignalStateChanged();
46}
42 47
43SoftwareKeyboard::~SoftwareKeyboard() = default; 48SoftwareKeyboard::~SoftwareKeyboard() = default;
44 49