Fix issue with non-standart pixel ration (#31)

Fixes #23
This commit is contained in:
Alexus 2019-07-13 21:02:45 +03:00 committed by Mkiol
parent d8bded70dc
commit c2dd791a87

View file

@ -51,6 +51,8 @@ QString IconProvider::themeDirPath()
themeDir = SailfishApp::pathTo("images/z1.75").toString(QUrl::RemoveScheme);
} else if (ratio == 2.0) {
themeDir = SailfishApp::pathTo("images/z2.0").toString(QUrl::RemoveScheme);
} else {
themeDir = SailfishApp::pathTo("images/z1.0").toString(QUrl::RemoveScheme);
}
if (!QDir(themeDir).exists()) {