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 {
onIsCurrentPageChanged: {
if (!isCurrentPage) {
platform.disableKeepScreenOn();
root.fullscreen_player = false;
root.visible_player = false;
root.globalDrawer.handleVisible = handle_state;
} else {
handle_state = root.globalDrawer.handleVisible;
root.globalDrawer.handleVisible = false;
root.visible_player = true;
platform.enableKeepScreenOn();
}
}
......@@ -589,7 +591,7 @@ Kirigami.Page {
MouseArea {
anchors.fill: parent
onClicked: {
root.visible_player ^= 1;
root.fullscreen_player ^= 1;
timer.cnt = 0;
}
}
......
......@@ -9,6 +9,7 @@ Kirigami.ApplicationWindow {
property bool ad_loaded: false
property bool ad_visible: include_ads
property bool visible_player: false
property bool fullscreen_player: false
property bool drawer_state: false
property bool detailed_options: !platform.mobile() || root.height > root.width
property bool auth_error_occurred: false
......@@ -22,8 +23,8 @@ Kirigami.ApplicationWindow {
width: Math.min(800, screen.desktopAvailableWidth)
height: Math.min(600, screen.desktopAvailableHeight)
onVisible_playerChanged: {
if (visible_player) {
onFullscreen_playerChanged: {
if (fullscreen_player) {
drawer_state = globalDrawer.drawerOpen;
globalDrawer.drawerOpen = false;
if (platform.mobile()) platform.landscapeOrientation();
......@@ -43,7 +44,7 @@ Kirigami.ApplicationWindow {
}
}
header: visible_player ? null : header
header: fullscreen_player ? null : header
Kirigami.ApplicationHeader {
id: header
......@@ -201,7 +202,7 @@ Kirigami.ApplicationWindow {
"Actions"
}
pageStack.initialPage: mainPageComponent
pageStack.interactive: !visible_player
pageStack.interactive: !fullscreen_player
pageStack.defaultColumnWidth: 10000
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