AyatanaIndicators / ayatana-indicator-keyboard

Ayatana Indicator Keyboard Applet
GNU General Public License v3.0
2 stars 6 forks source link

Hide ayatana-indicator-keyboard when there's no keyboard connected, preferably without Lomiri involvement #45

Open sunweaver opened 2 years ago

sunweaver commented 2 years ago

Lomiri has this hack [1]:

// HACK for indicator-keyboard
readonly property bool hideKeyboardIndicator: identifier == "indicator-keyboard" && !hasKeyboard

We might have to extend this to ayatana-indicator-keyboard, but my feeling says that keyboard indicator should already know if a keyboard is connected, and should act accordingly.

[1] https://gitlab.com/ubports/development/core/lomiri/-/blob/main/qml/Panel/Panel.qml#L421-422

See https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-keyboard/-/issues/4