diff options
-rw-r--r-- | src/mir_app/src/popupOption.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mir_app/src/popupOption.cpp b/src/mir_app/src/popupOption.cpp index a2b2f9a60a..cd2c13c068 100644 --- a/src/mir_app/src/popupOption.cpp +++ b/src/mir_app/src/popupOption.cpp @@ -112,12 +112,14 @@ public: int PopupOptionsInit(WPARAM wParam)
{
- OPTIONSDIALOGPAGE odp = {};
- odp.position = -1000000000;
- odp.szGroup.a = LPGEN("Popups");
- odp.szTitle.a = LPGEN("Events");
- odp.pDialog = new CPopupOptionsDlg();
- odp.flags = ODPF_BOLDGROUPS;
- g_plugin.addOptions(wParam, &odp);
+ if (g_arOptions.getCount()) {
+ OPTIONSDIALOGPAGE odp = {};
+ odp.position = -1000000000;
+ odp.szGroup.a = LPGEN("Popups");
+ odp.szTitle.a = LPGEN("Events");
+ odp.pDialog = new CPopupOptionsDlg();
+ odp.flags = ODPF_BOLDGROUPS;
+ g_plugin.addOptions(wParam, &odp);
+ }
return 0;
}
|