comparison src/gui/window.cc @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents c72b907b9bef
children 0a458cb26ff4
comparison
equal deleted inserted replaced
117:2c1b6782e1d0 118:39521c47c7a3
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 #include <QActionGroup> 20 #include <QActionGroup>
20 #include <QApplication> 21 #include <QApplication>
21 #include <QDebug> 22 #include <QDebug>
22 #include <QFile> 23 #include <QFile>
23 #include <QHBoxLayout> 24 #include <QHBoxLayout>
445 #endif 446 #endif
446 } 447 }
447 448
448 void MainWindow::closeEvent(QCloseEvent* event) { 449 void MainWindow::closeEvent(QCloseEvent* event) {
449 session.config.Save(); 450 session.config.Save();
451 Track::Types::SavePlayers(session.recognition.players);
452 Track::Types::SaveExtensions(session.recognition.extensions);
450 event->accept(); 453 event->accept();
451 } 454 }
452 455
453 #include "gui/moc_window.cpp" 456 #include "gui/moc_window.cpp"