* Set environment variables QT_AUTO_SCREEN_SCALE_FACTOR and QT_SCALE_FACTOR on Linux on app start * Added ScreenAutoScaling and ScreenScaleFactor to ApplicationSettings with dropdown boxes in the preferences only visible on Linux * Removed QtFontPicker and QtTextEncodingPicker * Moved logging into preferences category "output" fortune cookie message = You will have a peace of mind when you talk to an old friend
This commit is contained in:
+6
-4
@@ -187,15 +187,17 @@ QCoreApplication* createApplication(int &argc, char *argv[], bool noGUI = false)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef __linux__
|
||||
if (std::getenv("SOURCETRAIL_VIA_SCRIPT") == nullptr)
|
||||
if (utility::getOsType() == OS_LINUX && std::getenv("SOURCETRAIL_VIA_SCRIPT") == nullptr)
|
||||
{
|
||||
std::cout << "ERROR: Please run Sourcetrail via the Sourcetrail.sh script!" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication::setApplicationName("Sourcetrail");
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
|
||||
if (utility::getOsType() != OS_LINUX)
|
||||
{
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
}
|
||||
|
||||
Version version(
|
||||
VERSION_YEAR,
|
||||
|
||||
Reference in New Issue
Block a user