Allow setting a scale factor on Windows

Fixes #1756
This commit is contained in:
Nicolas Werner 2024-06-20 21:40:53 +02:00
parent a486d8d7fc
commit 311d9ad31e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 3 additions and 2 deletions

View file

@ -1420,7 +1420,8 @@ UserSettingsModel::data(const QModelIndex &index, int role) const
return tr("Will prevent swipe motions like swiping left/right between Rooms and "
"Timeline, or swiping a message to reply.");
case ScaleFactor:
return tr("Change the scale factor of the whole user interface.");
return tr("Change the scale factor of the whole user interface. Requires a restart to "
"take effect.");
case UseStunServer:
return tr(
"Will use turn.matrix.org as assist when your home server does not offer one.");

View file

@ -169,7 +169,7 @@ main(int argc, char *argv[])
// this needs to be after setting the application name. Or how would we find our settings
// file then?
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
#if !defined(Q_OS_MACOS)
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
float factor = utils::scaleFactor();