X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..8d0a7b563acf4bd7e75824ba2076a7ab4d81a650:/include/wx/sysopt.h?ds=inline 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