mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 23:32:44 +01:00
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.
This commit is contained in:
parent
76525013c0
commit
877b31b33e
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue