Commit 20fc266e authored by Paweł Wegner's avatar Paweł Wegner

cloudbrowser: renamed visible_player to fullscreen_player.

parent 0af26d44
...@@ -24,11 +24,13 @@ Kirigami.Page { ...@@ -24,11 +24,13 @@ Kirigami.Page {
onIsCurrentPageChanged: { onIsCurrentPageChanged: {
if (!isCurrentPage) { if (!isCurrentPage) {
platform.disableKeepScreenOn(); platform.disableKeepScreenOn();
root.fullscreen_player = false;
root.visible_player = false; root.visible_player = false;
root.globalDrawer.handleVisible = handle_state; root.globalDrawer.handleVisible = handle_state;
} else { } else {
handle_state = root.globalDrawer.handleVisible; handle_state = root.globalDrawer.handleVisible;
root.globalDrawer.handleVisible = false; root.globalDrawer.handleVisible = false;
root.visible_player = true;
platform.enableKeepScreenOn(); platform.enableKeepScreenOn();
} }
} }
...@@ -589,7 +591,7 @@ Kirigami.Page { ...@@ -589,7 +591,7 @@ Kirigami.Page {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
root.visible_player ^= 1; root.fullscreen_player ^= 1;
timer.cnt = 0; timer.cnt = 0;
} }
} }
......
...@@ -9,6 +9,7 @@ Kirigami.ApplicationWindow { ...@@ -9,6 +9,7 @@ Kirigami.ApplicationWindow {
property bool ad_loaded: false property bool ad_loaded: false
property bool ad_visible: include_ads property bool ad_visible: include_ads
property bool visible_player: false property bool visible_player: false
property bool fullscreen_player: false
property bool drawer_state: false property bool drawer_state: false
property bool detailed_options: !platform.mobile() || root.height > root.width property bool detailed_options: !platform.mobile() || root.height > root.width
property bool auth_error_occurred: false property bool auth_error_occurred: false
...@@ -22,8 +23,8 @@ Kirigami.ApplicationWindow { ...@@ -22,8 +23,8 @@ Kirigami.ApplicationWindow {
width: Math.min(800, screen.desktopAvailableWidth) width: Math.min(800, screen.desktopAvailableWidth)
height: Math.min(600, screen.desktopAvailableHeight) height: Math.min(600, screen.desktopAvailableHeight)
onVisible_playerChanged: { onFullscreen_playerChanged: {
if (visible_player) { if (fullscreen_player) {
drawer_state = globalDrawer.drawerOpen; drawer_state = globalDrawer.drawerOpen;
globalDrawer.drawerOpen = false; globalDrawer.drawerOpen = false;
if (platform.mobile()) platform.landscapeOrientation(); if (platform.mobile()) platform.landscapeOrientation();
...@@ -43,7 +44,7 @@ Kirigami.ApplicationWindow { ...@@ -43,7 +44,7 @@ Kirigami.ApplicationWindow {
} }
} }
header: visible_player ? null : header header: fullscreen_player ? null : header
Kirigami.ApplicationHeader { Kirigami.ApplicationHeader {
id: header id: header
...@@ -201,7 +202,7 @@ Kirigami.ApplicationWindow { ...@@ -201,7 +202,7 @@ Kirigami.ApplicationWindow {
"Actions" "Actions"
} }
pageStack.initialPage: mainPageComponent pageStack.initialPage: mainPageComponent
pageStack.interactive: !visible_player pageStack.interactive: !fullscreen_player
pageStack.defaultColumnWidth: 10000 pageStack.defaultColumnWidth: 10000
pageStack.anchors.bottomMargin: footer_height pageStack.anchors.bottomMargin: footer_height
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment