From 77001483813162f772a9f749b32a41ef633217f9 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Mon, 1 Nov 2021 00:57:34 +0200 Subject: [PATCH] [app] Define app version in a more obvious place --- app/qml/Books.js | 2 ++ app/settings/BooksSettings.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/qml/Books.js b/app/qml/Books.js index 30c90a7..8792d2c 100644 --- a/app/qml/Books.js +++ b/app/qml/Books.js @@ -1,5 +1,7 @@ .pragma library +var version = "1.0.43" + function contentOpacity(brightness) { return 0.4 + brightness * 0.6 } diff --git a/app/settings/BooksSettings.qml b/app/settings/BooksSettings.qml index af90312..952dc2f 100644 --- a/app/settings/BooksSettings.qml +++ b/app/settings/BooksSettings.qml @@ -133,7 +133,7 @@ Page { description: inApp ? "" : //: Settings page header description (app version) //% "Version %1" - qsTrId("harbour-books-settings-version").arg("1.0.43") + qsTrId("harbour-books-settings-version").arg(Books.version) Image { id: appIcon