Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jamal Dahbur
libcloudstorage
Commits
2599ed64
Commit
2599ed64
authored
Feb 16, 2018
by
Paweł Wegner
Browse files
cloudbrowser: back button support.
parent
38443036
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/cloudbrowser/qml/ItemPage.qml
View file @
2599ed64
...
...
@@ -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
"
;
}
...
...
bin/cloudbrowser/qml/MediaPlayer.qml
View file @
2599ed64
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment