X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..374e9b153fcb3f4e547929ccc9b80bda76fd6f6e:/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