view src/main.cc @ 235:593108b3d555

dep/animia: x11: finalize xcb conversion
author Paper <paper@paper.us.eu.org>
date Tue, 16 Jan 2024 15:22:29 -0500
parents adc20fa321c1
children 4d461ef7d424
line wrap: on
line source

#include "core/session.h"
#include "core/anime_db.h"
#include "gui/window.h"
#include <QApplication>
#include <QStyleFactory>
#include <QTranslator>
#include <QLocale>

Session session;

int main(int argc, char** argv) {
	QApplication app(argc, argv);
#if !(defined(WIN32) || defined(MACOSX))
	/* force Fusion */
	app.setStyle("Fusion");
#endif

	session.config.Load();
	session.config.locale.RefreshAvailableLocales();
	Anime::db.LoadDatabaseFromDisk();

	MainWindow window;

	window.resize(941, 750);
	window.setWindowTitle("Minori");
	window.show();

	return app.exec();
}