Fix the mobile title sometimes disappearing
I was depending on an implicit connection property from somewhere.
This commit is contained in:
@@ -15,6 +15,7 @@ import org.kde.neochat
|
|||||||
RowLayout {
|
RowLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
required property NeoChatConnection connection
|
||||||
property bool collapsed: false
|
property bool collapsed: false
|
||||||
|
|
||||||
signal search
|
signal search
|
||||||
@@ -36,7 +37,7 @@ RowLayout {
|
|||||||
} else if(RoomManager.currentSpace === 'DM') {
|
} else if(RoomManager.currentSpace === 'DM') {
|
||||||
return i18nc("@title", "Direct Messages");
|
return i18nc("@title", "Direct Messages");
|
||||||
}
|
}
|
||||||
return root.connection.room(RoomManager.currentSpace).displayName;
|
return root.connection.room(RoomManager.currentSpace)?.displayName;
|
||||||
}
|
}
|
||||||
return i18nc("@title List of rooms", "Rooms");
|
return i18nc("@title List of rooms", "Rooms");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -270,6 +270,7 @@ Kirigami.Page {
|
|||||||
Component {
|
Component {
|
||||||
id: exploreComponent
|
id: exploreComponent
|
||||||
ExploreComponent {
|
ExploreComponent {
|
||||||
|
connection: root.connection
|
||||||
collapsed: root.collapsed
|
collapsed: root.collapsed
|
||||||
|
|
||||||
onSearch: root.search()
|
onSearch: root.search()
|
||||||
|
|||||||
Reference in New Issue
Block a user