You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//state was pushing same page when returing from drivePage
@@ -170,7 +178,7 @@ ApplicationWindow {
170
178
title:qsTr("Select Drive")
171
179
}
172
180
PropertyChanges {
173
-
target: nextButton;
181
+
target: nextButton
174
182
visible:true
175
183
onClicked: {
176
184
selectedPage =Units.Page.DownloadPage
@@ -269,6 +277,11 @@ ApplicationWindow {
269
277
}
270
278
}
271
279
]
280
+
281
+
onStateChanged: {
282
+
nextButton.text=getNextButtonText()
283
+
prevButton.text=getPrevButtonText()
284
+
}
272
285
}
273
286
274
287
Units {
@@ -282,38 +295,43 @@ ApplicationWindow {
282
295
CancelDialog {
283
296
id: cancelDialog
284
297
}
285
-
286
-
298
+
287
299
functiongetNextButtonText() {
300
+
var text =""
288
301
if (mainLayout.state=="restorePage") {
289
302
if (lastRestoreable &&lastRestoreable.restoreStatus==Units.RestoreStatus.Restored)
290
-
returnqsTr("Finish")
291
-
returnqsTr("Restore")
303
+
text =qsTr("Finish")
304
+
text =qsTr("Restore")
292
305
} elseif (mainLayout.state=="drivePage") {
293
306
if (selectedOption ==Units.MainSelect.Write||downloadManager.isDownloaded(releases.selected.version.variant.url))
294
-
returnqsTr("Write")
307
+
text =qsTr("Write")
295
308
if (Qt.platform.os==="windows"||Qt.platform.os==="osx")
296
-
returnqsTr("Download && Write")
297
-
returnqsTr("Download & Write")
309
+
text =qsTr("Download && Write")
310
+
text =qsTr("Download & Write")
298
311
} elseif (mainLayout.state=="downloadPage") {
299
312
if (releases.variant.status===Units.DownloadStatus.Write_Verifying||releases.variant.status===Units.DownloadStatus.Writing||releases.variant.status===Units.DownloadStatus.Downloading||releases.variant.status===Units.DownloadStatus.Download_Verifying)
0 commit comments