MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / PopulateCategorySelection

Method PopulateCategorySelection

plugins/twitch/category-selection.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31std::map<QString, int> TwitchCategorySelection::_streamingCategories;
32
33void TwitchCategorySelection::PopulateCategorySelection()
34{
35 auto token = _token.lock();
36 if (!token && _streamingCategories.empty()) {
37 return;
38 }
39
40 if (!_fetchingCategoriesDone && token) {
41 _categoryGrabber.Start(token);
42 if (_progressDialog->exec() == QDialog::Accepted) {
43 _fetchingCategoriesDone = true;
44 }
45 _categoryGrabber.Stop();
46 _categoryGrabber.wait();
47 }
48 UpdateCategoryList();
49}
50
51void TwitchCategorySelection::UpdateCategoryList()
52{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
StartMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected