Changeset View
Changeset View
Standalone View
Standalone View
src/creator/qml/WelcomePage.qml
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 106 | anchors { | |||
---|---|---|---|---|---|
107 | top: parent.top; | 107 | top: parent.top; | ||
108 | left: parent.left; | 108 | left: parent.left; | ||
109 | right: parent.horizontalCenter; | 109 | right: parent.horizontalCenter; | ||
110 | bottom: parent.verticalCenter; | 110 | bottom: parent.verticalCenter; | ||
111 | } | 111 | } | ||
112 | QtControls.Button { | 112 | QtControls.Button { | ||
113 | anchors.centerIn: parent; | 113 | anchors.centerIn: parent; | ||
114 | // iconName: "go-next"; | 114 | // iconName: "go-next"; | ||
115 | text: i18nc("Button to continue working on the most recently opened comic book archive", "Continue %1").arg(continueLast.mostRecentBook.split('/').pop()); | 115 | text: i18nc("Button to continue working on the most recently opened comic book archive", "Continue %1", continueLast.mostRecentBook.split('/').pop()); | ||
116 | onClicked: mainWindow.openBook(continueLast.mostRecentBook); | 116 | onClicked: mainWindow.openBook(continueLast.mostRecentBook); | ||
117 | } | 117 | } | ||
118 | property string mostRecentBook: ""; | 118 | property string mostRecentBook: ""; | ||
119 | Component.onCompleted: { | 119 | Component.onCompleted: { | ||
120 | if(peruseConfig.recentlyOpened.length > 0) { | 120 | if(peruseConfig.recentlyOpened.length > 0) { | ||
121 | for(var i = 0; i < peruseConfig.recentlyOpened.length; ++i) { | 121 | for(var i = 0; i < peruseConfig.recentlyOpened.length; ++i) { | ||
122 | if(peruseConfig.recentlyOpened[i].toLowerCase().slice(-4) === ".cbz") { | 122 | if(peruseConfig.recentlyOpened[i].toLowerCase().slice(-4) === ".cbz") { | ||
123 | continueLast.mostRecentBook = peruseConfig.recentlyOpened[i]; | 123 | continueLast.mostRecentBook = peruseConfig.recentlyOpened[i]; | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |