mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 23:30:05 +00:00
Implement discard functionality for line settings
This commit is contained in:
parent
6063de2095
commit
76809de2df
7 changed files with 89 additions and 7 deletions
|
|
@ -19,7 +19,7 @@ class SettingsVariableBase
|
|||
{
|
||||
protected:
|
||||
explicit SettingsVariableBase(const std::string& name);
|
||||
~SettingsVariableBase();
|
||||
virtual ~SettingsVariableBase();
|
||||
|
||||
public:
|
||||
SettingsVariableBase(const SettingsVariableBase&) = delete;
|
||||
|
|
@ -48,6 +48,11 @@ public:
|
|||
*/
|
||||
virtual bool Commit() = 0;
|
||||
|
||||
/**
|
||||
* Clears the staged value of the settings variable.
|
||||
*/
|
||||
virtual void Reset() = 0;
|
||||
|
||||
/**
|
||||
* Reads the value from the JSON object. If the read value is out of range,
|
||||
* the value is set to the minimum or maximum. If the read value fails
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue