parent
4b1b062388
commit
3a57d1018e
6 changed files with 68 additions and 56 deletions
|
|
@ -150,7 +150,12 @@ main(int argc, char *argv[])
|
|||
std::exit(1);
|
||||
}
|
||||
|
||||
app.setFont(QFont("Open Sans"));
|
||||
QSettings settings;
|
||||
|
||||
QFont font("Open Sans");
|
||||
font.setPointSizeF(settings.value("user/font_size", font.pointSizeF()).toDouble());
|
||||
|
||||
app.setFont(font);
|
||||
|
||||
QString lang = QLocale::system().name();
|
||||
|
||||
|
|
@ -167,8 +172,6 @@ main(int argc, char *argv[])
|
|||
// Move the MainWindow to the center
|
||||
w.move(screenCenter(w.width(), w.height()));
|
||||
|
||||
QSettings settings;
|
||||
|
||||
if (!settings.value("user/window/start_in_tray", false).toBool() ||
|
||||
!settings.value("user/window/tray", true).toBool())
|
||||
w.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue