Skip to content

Commit fad7a66

Browse files
committed
fix: not able to load translations
1 parent c68e82c commit fad7a66

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
cmake_minimum_required (VERSION 3.9.5)
66

7-
project(pineapple-pictures VERSION 0.8.2) # don't forget to update NEWS file and AppStream metadata.
7+
project(pineapple-pictures VERSION 0.8.2.1) # don't forget to update NEWS file and AppStream metadata.
88

99
include (GNUInstallDirs)
1010
include (FeatureSummary)

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 0.8.2.1
2+
~~~~~~~~~~~~~
3+
Released: 2024-10-27
4+
5+
Bugfixes:
6+
* Cannot load translations caused by a change in 0.8.2
7+
18
Version 0.8.2
29
~~~~~~~~~~~~~
310
Released: 2024-10-26

app/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ int main(int argc, char *argv[])
2222
{
2323
QCoreApplication::setApplicationName("Pineapple Pictures");
2424
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
25+
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
26+
27+
QApplication a(argc, argv);
28+
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
29+
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
30+
#endif
2531

2632
QTranslator translator;
2733
QString qmDir;
@@ -35,12 +41,6 @@ int main(int argc, char *argv[])
3541
}
3642

3743
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
38-
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
39-
40-
QApplication a(argc, argv);
41-
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
42-
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
43-
#endif
4444

4545
// commandline options
4646
QCommandLineOption supportedImageFormats(QStringLiteral("supported-image-formats"), QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));

dist/appstream/net.blumia.pineapple-pictures.metainfo.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@
7474
</screenshot>
7575
</screenshots>
7676
<releases>
77+
<release type="stable" version="0.8.2.1" date="2024-10-27T00:00:00Z">
78+
<description>
79+
<p>This release fixes the following bug:</p>
80+
<ul>
81+
<li>Cannot load translations caused by a change in 0.8.2</li>
82+
</ul>
83+
</description>
84+
</release>
7785
<release type="stable" version="0.8.2" date="2024-10-26T00:00:00Z">
7886
<description>
7987
<p>This release adds the following feature:</p>

0 commit comments

Comments
 (0)