Remove global menu support from Android

This pull out QtWidgets which we don't need
This commit is contained in:
Carl Schwan
2024-09-20 14:19:27 +02:00
parent abb81e0d8e
commit 2a6e3c0add
3 changed files with 8 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ import org.kde.neochat.settings
Labs.MenuBar {
id: root
required property NeoChatConnection connection
property NeoChatConnection connection
Labs.Menu {
title: i18nc("menu", "NeoChat")

View File

@@ -64,8 +64,9 @@ Kirigami.ApplicationWindow {
Loader {
active: Kirigami.Settings.hasPlatformMenuBar && !Kirigami.Settings.isMobile
sourceComponent: GlobalMenu {
connection: root.connection
sourceComponent: Qt.createComponent("org.kde.neochat", "GlobalMenu")
onActiveChanged: if (active) {
item.connection = root.connection;
}
}