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:
parent
f91e9f88e7
commit
4ed34111c7
2 changed files with 28 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue