Mercurial > minori
comparison src/gui/window.cc @ 195:975a3f0965e2
locale: only attempt loading locales after QApplication is init'd
also the general application stuff and anime list is separated in settings
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 07 Dec 2023 11:14:01 -0500 |
| parents | 2d5823df870f |
| children | 84e0a3c4737a |
comparison
equal
deleted
inserted
replaced
| 194:8548dc425697 | 195:975a3f0965e2 |
|---|---|
| 76 | 76 |
| 77 NowPlayingPage* page = reinterpret_cast<NowPlayingPage*>(stack->widget(static_cast<int>(Pages::NOW_PLAYING))); | 77 NowPlayingPage* page = reinterpret_cast<NowPlayingPage*>(stack->widget(static_cast<int>(Pages::NOW_PLAYING))); |
| 78 | 78 |
| 79 qRegisterMetaType<std::vector<std::string>>(); | 79 qRegisterMetaType<std::vector<std::string>>(); |
| 80 | 80 |
| 81 /* This thread will be destroyed on | |
| 82 * close of the program OR on the destruction | |
| 83 * of MainWindow | |
| 84 */ | |
| 81 thread.reset(new PlayingThread(this)); | 85 thread.reset(new PlayingThread(this)); |
| 82 | 86 |
| 83 QTimer* timer = new QTimer(this); | 87 QTimer* timer = new QTimer(this); |
| 84 | 88 |
| 85 connect(timer, &QTimer::timeout, this, [this, page] { | 89 connect(timer, &QTimer::timeout, this, [this, page] { |
