Merge lp:~mpt/ubuntu-ui-toolkit/1542099-window-title into lp:ubuntu-ui-toolkit

Proposed by Matthew Paul Thomas
Status: Rejected
Rejected by: Zsombor Egri
Proposed branch: lp:~mpt/ubuntu-ui-toolkit/1542099-window-title
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 21 lines (+0/-11)
1 file modified
src/Ubuntu/Components/1.3/MainView.qml (+0/-11)
To merge this branch: bzr merge lp:~mpt/ubuntu-ui-toolkit/1542099-window-title
Reviewer Review Type Date Requested Status
Zsombor Egri Disapprove
PS Jenkins bot continuous-integration Approve
Review via email: mp+286789@code.launchpad.net

Description of the change

Warning: I have not tested this change at all.

It removes code that appears to set the window title to be the same as the header title.

Setting the window title to be the same as the header title is undesirable for two reasons: it’s highly visible redundancy, and whenever the app has multiple screens it means the window title often isn’t the name of the app.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

The solution has been added as without this the task switcher doesn't show the name of the application. We need another solution for that but until that we must keep this solution.

review: Disapprove

Unmerged revisions

1281. By Matthew Paul Thomas

Stops changing an app's window title when the header changes.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/1.3/MainView.qml'
2--- src/Ubuntu/Components/1.3/MainView.qml 2015-10-13 13:37:43 +0000
3+++ src/Ubuntu/Components/1.3/MainView.qml 2016-02-22 11:03:04 +0000
4@@ -186,17 +186,6 @@
5 // 'window' is defined by QML between startup and showing on the screen.
6 // There is no signal for when it becomes available and re-declaring it is not safe.
7 property bool windowActive: typeof window != 'undefined'
8- onWindowActiveChanged: {
9- window.title = headerItem.title
10- }
11-
12- Connections {
13- target: headerItem
14- onTitleChanged: {
15- if (headerItem.windowActive)
16- window.title = headerItem.title
17- }
18- }
19 }
20
21 Connections {

Subscribers

People subscribed via source and target branches

to status/vote changes: