Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/DialogContent.qml
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 39 | Kirigami.ApplicationItem { | |||
---|---|---|---|---|---|
58 | property alias viewMode: newStuffPage.viewMode | 58 | property alias viewMode: newStuffPage.viewMode | ||
59 | 59 | | |||
60 | QtLayouts.Layout.preferredWidth: Kirigami.Units.gridUnit * 50 | 60 | QtLayouts.Layout.preferredWidth: Kirigami.Units.gridUnit * 50 | ||
61 | QtLayouts.Layout.preferredHeight: Kirigami.Units.gridUnit * 40 | 61 | QtLayouts.Layout.preferredHeight: Kirigami.Units.gridUnit * 40 | ||
62 | pageStack.defaultColumnWidth: pageStack.width | 62 | pageStack.defaultColumnWidth: pageStack.width | ||
63 | pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Auto | 63 | pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Auto | ||
64 | pageStack.initialPage: NewStuff.Page { | 64 | pageStack.initialPage: NewStuff.Page { | ||
65 | id: newStuffPage | 65 | id: newStuffPage | ||
66 | onMessage: component.showPassiveNotification(message); | 66 | function showMessage(message) { | ||
67 | onIdleMessage: component.showPassiveNotification(message); | 67 | // As the Page shows something nice and friendly while loading, | ||
68 | onBusyMessage: component.showPassiveNotification(message); | 68 | // there's no reason to do the passive notification thing for those. | ||
69 | onErrorMessage: component.showPassiveNotification(message); | 69 | if (!engine.isLoading) { | ||
70 | component.showPassiveNotification(message); | ||||
71 | } | ||||
72 | } | ||||
73 | onMessage: showMessage(message); | ||||
74 | onIdleMessage: showMessage(message); | ||||
75 | onBusyMessage: showMessage(message); | ||||
76 | onErrorMessage: showMessage(message); | ||||
70 | } | 77 | } | ||
71 | } | 78 | } |