Changeset 8c94fa2 in subsurface


Ignore:
Timestamp:
Apr 3, 2017, 10:49:07 AM (7 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
4864ea5
Parents:
e4460be
git-author:
Dirk Hohndel <dirk@…> (04/03/17 10:48:35)
git-committer:
Dirk Hohndel <dirk@…> (04/03/17 10:49:07)
Message:

QML UI: ensure actions are set up for Credentials page

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/DiveList.qml

    re4460be r8c94fa2  
    216216                visible: opacity > 0
    217217                Behavior on opacity { NumberAnimation { duration: Kirigami.Units.shortDuration } }
    218                 onVisibleChanged: {
    219                         print("startPage onVisibleChanged credentialStatus " + credentialStatus + " diveListView.count " + diveListView.count)
     218                function setupActions() {
    220219                        if (visible) {
    221220                                page.actions.main = page.saveAction
     
    233232                                title = qsTr("Dive list")
    234233                        }
     234                }
     235                onVisibleChanged: {
     236                        setupActions();
     237                }
     238                Component.onCompleted: {
     239                        setupActions();
    235240                }
    236241        }
Note: See TracChangeset for help on using the changeset viewer.