mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Flip visibility when opacity is 0
This makes sure we don't accept any input from the startpage when interacting with the divelist -- they're really mutually exclusive. Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dab207a8c8
commit
9ff701069d
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ Rectangle {
|
||||||
StartPage {
|
StartPage {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity: (diveModel.rowCount() == 0) ? 1.0 : 0
|
opacity: (diveModel.rowCount() == 0) ? 1.0 : 0
|
||||||
|
visible: opacity > 0
|
||||||
Behavior on opacity { NumberAnimation { duration: units.shortDuration } }
|
Behavior on opacity { NumberAnimation { duration: units.shortDuration } }
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
print("diveModel.count " + diveModel.rowCount());
|
print("diveModel.count " + diveModel.rowCount());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue