1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: add a music mode

Settings toggle makes the app show music only.
This commit is contained in:
Adam Pigg 2022-09-21 22:01:47 +01:00
parent f91e9f88e7
commit 4ed34111c7
2 changed files with 28 additions and 1 deletions

View file

@ -148,6 +148,7 @@ ApplicationWindow {
id: config
path: "/nl/netsoj/chris/Sailfin"
property bool showDebugInfo: false
property bool musicMode: false
}
function navigateToItem(jellyfinId, mediaType, type, isFolder) {
@ -196,7 +197,13 @@ ApplicationWindow {
}
ScriptAction {
script: pageStack.replace(Qt.resolvedUrl("pages/MainPage.qml"), {}, PageStackAction.Immediate)
script: {
if (config.musicMode) {
pageStack.replace(Qt.resolvedUrl("pages/itemdetails/MusicLibraryPage.qml"), {}, PageStackAction.Immediate)
} else {
pageStack.replace(Qt.resolvedUrl("pages/MainPage.qml"), {}, PageStackAction.Immediate)
}
}
}
}