early-access version 3987

This commit is contained in:
pineappleEA
2023-11-22 06:18:45 +01:00
parent 2a27dd5f8c
commit 2358e6443d
6 changed files with 38 additions and 6 deletions
+2 -1
View File
@@ -283,7 +283,8 @@ void QtConfig::ReadUIGamelistValues() {
const int favorites_size = BeginArray("favorites");
for (int i = 0; i < favorites_size; i++) {
SetArrayIndex(i);
UISettings::values.favorited_ids.append(ReadIntegerSetting(std::string("program_id")));
UISettings::values.favorited_ids.append(
ReadUnsignedIntegerSetting(std::string("program_id")));
}
EndArray();
+2 -2
View File
@@ -194,7 +194,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
return group;
}
const auto get_selected = [=]() -> int {
const auto get_selected = [this]() -> int {
for (const auto& [id, button] : radio_buttons) {
if (button->isChecked()) {
return id;
@@ -203,7 +203,7 @@ QWidget* Widget::CreateRadioGroup(std::function<std::string()>& serializer,
return -1;
};
const auto set_index = [=](u32 value) {
const auto set_index = [this](u32 value) {
for (const auto& [id, button] : radio_buttons) {
button->setChecked(id == value);
}
+1 -1
View File
@@ -479,6 +479,6 @@ void GameListWorker::run() {
}
}
RecordEvent([=](GameList* game_list) { game_list->DonePopulating(watch_list); });
RecordEvent([this](GameList* game_list) { game_list->DonePopulating(watch_list); });
processing_completed.Set();
}