Commit 2599ed64 authored by Paweł Wegner's avatar Paweł Wegner

cloudbrowser: back button support.

parent 38443036
......@@ -25,6 +25,13 @@ Kirigami.ScrollablePage {
}
}
onBackRequested: {
if (pageStack.currentIndex > 0) {
pageStack.currentIndex--;
event.accepted = true;
}
}
function playable_type(type) {
return type === "audio" || type === "video" || type === "image";
}
......
......@@ -44,6 +44,12 @@ Kirigami.Page {
audio_player.item.pause();
}
}
onBackRequested: {
if (pageStack.currentIndex > 0) {
pageStack.currentIndex--;
event.accepted = true;
}
}
Component.onCompleted: {
root.player_count++;
update_notification();
......
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