Add systemPreferences.removeUserDefault()
This can be used to restore the default or global value of a `key` previously set with `setUserDefault`.
This commit is contained in:
parent
30abdbccf8
commit
06d782279c
5 changed files with 35 additions and 4 deletions
|
@ -76,6 +76,7 @@ class SystemPreferences : public mate::EventEmitter<SystemPreferences>
|
|||
void SetUserDefault(const std::string& name,
|
||||
const std::string& type,
|
||||
mate::Arguments* args);
|
||||
void RemoveUserDefault(const std::string& name);
|
||||
bool IsSwipeTrackingFromScrollEventsEnabled();
|
||||
#endif
|
||||
bool IsDarkMode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue