Main: Set window title to current room name
This commit is contained in:
@@ -20,8 +20,15 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
property bool initialized: false
|
property bool initialized: false
|
||||||
|
|
||||||
|
title: {
|
||||||
title: NeoChatConfig.windowTitleFocus ? activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "") : "NeoChat"
|
if (NeoChatConfig.windowTitleFocus) {
|
||||||
|
return activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "");
|
||||||
|
} else if (RoomManager.currentRoom) {
|
||||||
|
return RoomManager.currentRoom.displayName;
|
||||||
|
} else {
|
||||||
|
return Application.displayName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
minimumWidth: Kirigami.Units.gridUnit * 20
|
minimumWidth: Kirigami.Units.gridUnit * 20
|
||||||
minimumHeight: Kirigami.Units.gridUnit * 15
|
minimumHeight: Kirigami.Units.gridUnit * 15
|
||||||
|
|||||||
Reference in New Issue
Block a user