comparison src/main.cc @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 4d461ef7d424
children 862d0d8619f6
comparison
equal deleted inserted replaced
249:6b2441c776dd 250:c130f47f6f48
1 #include "core/session.h" 1 #include "core/session.h"
2 #include "core/anime_db.h" 2 #include "core/anime_db.h"
3 #include "core/strings.h" 3 #include "core/strings.h"
4 #include "services/anilist.h"
4 #include "gui/window.h" 5 #include "gui/window.h"
6
5 #include <QApplication> 7 #include <QApplication>
6 #include <QStyleFactory> 8 #include <QStyleFactory>
7 #include <QTranslator> 9 #include <QTranslator>
8 #include <QLocale> 10 #include <QLocale>
9 11
11 13
12 Session session; 14 Session session;
13 15
14 int main(int argc, char** argv) { 16 int main(int argc, char** argv) {
15 QApplication app(argc, argv); 17 QApplication app(argc, argv);
18 app.setApplicationName("minori");
19 app.setApplicationDisplayName("Minori");
16 app.setAttribute(Qt::AA_DontShowIconsInMenus, true); 20 app.setAttribute(Qt::AA_DontShowIconsInMenus, true);
17 21
18 session.config.Load(); 22 session.config.Load();
19 session.config.locale.RefreshAvailableLocales();
20 Anime::db.LoadDatabaseFromDisk(); 23 Anime::db.LoadDatabaseFromDisk();
21 24
22 MainWindow window; 25 MainWindow window;
23 26
24 window.resize(941, 750); 27 window.resize(941, 750);