Add basic behavior to play, show catalog and more basic feature
This commit is contained in:
1 parent
df847becc8
commit
8e6392a84c
17 files changed
+1455
-34
No files matched your search
@@ -10,6 +10,7 @@ FocusScope {
|
||||
|
||||
property var session: null
|
||||
property int depth: 0
|
||||
readonly property bool fullscreen: loader.item !== null && loader.item.fullscreen === true
|
||||
property var _stack: []
|
||||
|
||||
function push(name, props) {
|
||||
@@ -36,6 +37,17 @@ FocusScope {
|
||||
push(name, props);
|
||||
}
|
||||
|
||||
// Ouvre l'écran adapté à un élément du catalogue (Session._toItem()).
|
||||
function openItem(item) {
|
||||
if (item.type === "CollectionFolder")
|
||||
push("Library", { library: { id: item.id, name: item.name, collectionType: item.collectionType } });
|
||||
else if (item.type === "Season")
|
||||
push("Season", { seriesId: item.seriesId, seasonId: item.id, seasonName: item.name,
|
||||
seriesName: item.seriesName });
|
||||
else
|
||||
push("Details", { itemId: item.id });
|
||||
}
|
||||
|
||||
function _load() {
|
||||
var entry = _stack[_stack.length - 1];
|
||||
var props = { navigator: root, session: root.session };
|
||||
|
||||
Reference in new issue
Block a user