Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/Book.qml
Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Line(s) | 363 | Kirigami.OverlaySheet { | |||
---|---|---|---|---|---|
386 | function openSelected() { | 386 | function openSelected() { | ||
387 | applicationWindow().showBook(detailsTile.filename, detailsTile.currentPage); | 387 | applicationWindow().showBook(detailsTile.filename, detailsTile.currentPage); | ||
388 | } | 388 | } | ||
389 | function showBookInfo(filename) { | 389 | function showBookInfo(filename) { | ||
390 | if(sheetOpen) { | 390 | if(sheetOpen) { | ||
391 | return; | 391 | return; | ||
392 | } | 392 | } | ||
393 | seriesListView.model = contentList.seriesModelForEntry(filename); | 393 | seriesListView.model = contentList.seriesModelForEntry(filename); | ||
394 | if (seriesListView.model) { | ||||
394 | setNewCurrentIndex(seriesListView.model.indexOfFile(filename)); | 395 | setNewCurrentIndex(seriesListView.model.indexOfFile(filename)); | ||
396 | } | ||||
395 | open(); | 397 | open(); | ||
396 | } | 398 | } | ||
397 | onSheetOpenChanged: { | 399 | onSheetOpenChanged: { | ||
398 | if(sheetOpen === false) { | 400 | if(sheetOpen === false) { | ||
399 | applicationWindow().controlsVisible = controlsShown; | 401 | applicationWindow().controlsVisible = controlsShown; | ||
400 | } | 402 | } | ||
401 | else { | 403 | else { | ||
402 | controlsShown = applicationWindow().controlsVisible; | 404 | controlsShown = applicationWindow().controlsVisible; | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |