mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
[SettingsManager] Properly handle multithreaded access again (#6844)
* [SettingsManager] Properly handle multithreaded access again * Add comment * Add batch write function --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
7c9fbe2be0
commit
19dbb17fb9
10 changed files with 88 additions and 12 deletions
|
|
@ -130,6 +130,11 @@ public:
|
|||
/** @brief Notifies listeners that enabled sets changed. */
|
||||
void notifyEnabledSetsChanged();
|
||||
|
||||
ICardSetPriorityController *getPriorityController()
|
||||
{
|
||||
return setPriorityController;
|
||||
};
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief Adds a card to the database.
|
||||
|
|
|
|||
|
|
@ -181,6 +181,15 @@ public:
|
|||
*/
|
||||
void loadSetOptions();
|
||||
|
||||
void setSortKeyInMemory(unsigned int _sortKey)
|
||||
{
|
||||
sortKey = _sortKey;
|
||||
}
|
||||
void setEnabledInMemory(bool _enabled)
|
||||
{
|
||||
enabled = _enabled;
|
||||
}
|
||||
|
||||
/// @return The sort key assigned to this set.
|
||||
[[nodiscard]] int getSortKey() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue