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