X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..c493691d6249650c0366fd9aaaca8572e3ff3edd:/include/wx/sysopt.h diff --git a/include/wx/sysopt.h b/include/wx/sysopt.h index 90d802215b..0b8a771666 100644 --- a/include/wx/sysopt.h +++ b/include/wx/sysopt.h @@ -34,6 +34,11 @@ public: static wxString GetOption(const wxString& name); static int GetOptionInt(const wxString& name); static bool HasOption(const wxString& name); + + static bool IsFalse(const wxString& name) + { + return HasOption(name) && GetOptionInt(name) == 0; + } }; #if !wxUSE_SYSTEM_OPTIONS