comparison src/gui/pages/anime_list.cc @ 232:ff0061e75f0f

theme: add OS detection with glib
author Paper <mrpapersonic@gmail.com>
date Sat, 13 Jan 2024 11:06:16 -0500
parents 2f5a9247e501
children 4d461ef7d424
comparison
equal deleted inserted replaced
231:69f4768a820c 232:ff0061e75f0f
216 tree_view->setColumnHidden(AnimeListPageModel::AL_UPDATED, true); 216 tree_view->setColumnHidden(AnimeListPageModel::AL_UPDATED, true);
217 tree_view->setColumnHidden(AnimeListPageModel::AL_NOTES, true); 217 tree_view->setColumnHidden(AnimeListPageModel::AL_NOTES, true);
218 } 218 }
219 219
220 void AnimeListPage::UpdateAnime(int id) { 220 void AnimeListPage::UpdateAnime(int id) {
221 QThread* thread = QThread::create([id] { 221 QThread* thread = QThread::create([this, id] {
222 Services::UpdateAnimeEntry(id); 222 Services::UpdateAnimeEntry(id);
223 }); 223 });
224 224
225 connect(thread, &QThread::finished, this, &AnimeListPage::Refresh); 225 connect(thread, &QThread::finished, this, &AnimeListPage::Refresh);
226 connect(thread, &QThread::finished, this, &QThread::deleteLater); 226 connect(thread, &QThread::finished, thread, &QThread::deleteLater);
227 227
228 thread->start(); 228 thread->start();
229 } 229 }
230 230
231 void AnimeListPage::RemoveAnime(int id) { 231 void AnimeListPage::RemoveAnime(int id) {