mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
GH-1223 fix override settings
They now work more like passthrough settings, except not passing through set and reset
This commit is contained in:
@ -30,10 +30,17 @@ class OverrideSetting : public Setting
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit OverrideSetting(std::shared_ptr<Setting> other);
|
||||
explicit OverrideSetting(std::shared_ptr<Setting> overriden, std::shared_ptr<Setting> gate);
|
||||
|
||||
virtual QVariant defValue() const;
|
||||
virtual QVariant get() const;
|
||||
virtual void set (QVariant value);
|
||||
virtual void reset();
|
||||
|
||||
private:
|
||||
bool isOverriding() const;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<Setting> m_other;
|
||||
std::shared_ptr<Setting> m_gate;
|
||||
};
|
||||
|
Reference in New Issue
Block a user