comparison src/gui/window.cc @ 147:6fdf0632c003

track: use a bit of a more sane way to manage recognition it also works with the new animia API
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 13:19:40 -0500
parents 478f3b366199
children d43d68408d3c
comparison
equal deleted inserted replaced
146:d8a61e7e2a36 147:6fdf0632c003
14 #include "gui/pages/statistics.h" 14 #include "gui/pages/statistics.h"
15 #include "gui/pages/torrents.h" 15 #include "gui/pages/torrents.h"
16 #include "gui/widgets/sidebar.h" 16 #include "gui/widgets/sidebar.h"
17 #include "services/services.h" 17 #include "services/services.h"
18 #include "track/media.h" 18 #include "track/media.h"
19 #include "track/types.h" 19
20 #include <QActionGroup> 20 #include <QActionGroup>
21 #include <QApplication> 21 #include <QApplication>
22 #include <QDebug> 22 #include <QDebug>
23 #include <QFile> 23 #include <QFile>
24 #include <QHBoxLayout> 24 #include <QHBoxLayout>
30 #include <QTextStream> 30 #include <QTextStream>
31 #include <QThreadPool> 31 #include <QThreadPool>
32 #include <QTimer> 32 #include <QTimer>
33 #include <QToolBar> 33 #include <QToolBar>
34 #include <QToolButton> 34 #include <QToolButton>
35 #include <iostream> 35
36 #ifdef MACOSX 36 #ifdef MACOSX
37 # include "sys/osx/dark_theme.h" 37 # include "sys/osx/dark_theme.h"
38 #elif defined(WIN32) 38 #elif defined(WIN32)
39 # include "sys/win32/dark_theme.h" 39 # include "sys/win32/dark_theme.h"
40 #endif 40 #endif
461 #endif 461 #endif
462 } 462 }
463 463
464 void MainWindow::closeEvent(QCloseEvent* event) { 464 void MainWindow::closeEvent(QCloseEvent* event) {
465 session.config.Save(); 465 session.config.Save();
466 Track::Types::SavePlayers(session.recognition.players);
467 Track::Types::SaveExtensions(session.recognition.extensions);
468 event->accept(); 466 event->accept();
469 } 467 }
470 468
471 #include "gui/moc_window.cpp" 469 #include "gui/moc_window.cpp"