File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,7 @@ ApplicationWindow {
9
9
visible: stateController .state !== " loading"
10
10
width: screenGeometry .width
11
11
height: screenGeometry .height
12
- title: {
13
- if (stateController .state !== " viewing" || ! viewer .model ){
14
- return Qt .application .displayName ;
15
- }
16
- return viewer .model .display .path ;
17
- }
12
+ title: Qt .application .displayName
18
13
Component .onCompleted : {
19
14
controller .startup ();
20
15
}
@@ -35,11 +30,13 @@ ApplicationWindow {
35
30
MouseArea {
36
31
anchors .fill : parent
37
32
onClicked: {
38
- if (stateController .state !== " viewing" ){
33
+ console .log (" Back button pressed" );
34
+ if (stateController .state === " loaded" ){
35
+ console .log (" Quitting" );
39
36
Qt .quit ();
40
37
return ;
41
38
}
42
- viewer . model = undefined ;
39
+ console . log ( " Going back to main view " ) ;
43
40
stateController .state = " loaded" ;
44
41
}
45
42
}
You can’t perform that action at this time.
0 commit comments