settings, uisettings: Initialize linkage counter
This commit is contained in:
parent
8e15146026
commit
4c4bc134a9
@ -144,7 +144,7 @@ float Volume() {
|
||||
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
|
||||
}
|
||||
|
||||
Linkage::Linkage() = default;
|
||||
Linkage::Linkage(u32 initial_count) : count{initial_count} {}
|
||||
Linkage::~Linkage() = default;
|
||||
|
||||
const char* TranslateCategory(Category category) {
|
||||
|
@ -291,7 +291,7 @@ public:
|
||||
|
||||
class Linkage {
|
||||
public:
|
||||
explicit Linkage();
|
||||
explicit Linkage(u32 initial_count = 0);
|
||||
~Linkage();
|
||||
std::map<Category, std::forward_list<BasicSetting*>> by_category{};
|
||||
std::vector<std::function<void()>> restore_functions{};
|
||||
|
@ -59,7 +59,7 @@ struct GameDir {
|
||||
};
|
||||
|
||||
struct Values {
|
||||
Settings::Linkage linkage{};
|
||||
Settings::Linkage linkage{1000};
|
||||
|
||||
QByteArray geometry;
|
||||
QByteArray state;
|
||||
|
Loading…
Reference in New Issue
Block a user