From e27ff542e907a6c3e00236f161818fce0ac6b77b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 21 Jul 2025 14:13:36 +0200 Subject: src/service.c: Don't show OSK settings when on Ubuntu Touch. --- src/service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/service.c b/src/service.c index 54d2327f..7b205327 100644 --- a/src/service.c +++ b/src/service.c @@ -157,6 +157,7 @@ static GVariant* createHeaderState(IndicatorKeyboardService *self, int nProfile) static GMenuModel* createLayoutSection(IndicatorKeyboardService *self, gboolean bOSK) { self->pPrivate->pLayoutSection = g_menu_new(); + gboolean bUbuntuTouch = ayatana_common_utils_is_ubuntutouch (); gboolean bCreate = FALSE; if (self->pPrivate->bLomiri) @@ -171,7 +172,7 @@ static GMenuModel* createLayoutSection(IndicatorKeyboardService *self, gboolean bCreate = TRUE; } } - else if (bOSK) + else if (bOSK && !bUbuntuTouch) { gboolean bSoftwareKeyboard = m_fnKeyboardHasSoftwareKeyboard (self->pPrivate->pKeyboard); @@ -262,7 +263,7 @@ static GMenuModel* createSettingsSection(IndicatorKeyboardService *self, gboolea bDisplay = TRUE; } } - else if (bOSK) + else if (bOSK && !bUbuntuTouch) { gboolean bSoftwareKeyboard = m_fnKeyboardHasSoftwareKeyboard (self->pPrivate->pKeyboard); -- cgit v1.2.3