Fix roomlist "jumping around".
Remove custom DPI code from main.cpp. Hide redacted event in roomlist.
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -26,18 +26,6 @@
|
||||
using namespace QMatrixClient;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD)
|
||||
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
|
||||
QSettings settings("ENCOM", "Spectral");
|
||||
float factor = settings.value("Interface/dpi", 100).toFloat() / 100;
|
||||
|
||||
qDebug() << "DPI:" << factor;
|
||||
|
||||
if (factor != -1)
|
||||
qputenv("QT_SCALE_FACTOR", QString::number(factor).toUtf8());
|
||||
}
|
||||
#endif
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
||||
|
||||
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||
|
||||
Reference in New Issue
Block a user