summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-08 21:46:32 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-08 21:46:32 +0300
commit8d456fb2bb1a2a74f7d4dc8e50a625802aee8b37 (patch)
tree27224fc14a49c91d30df009b4f15ee67a80ed27c
parent6239af632a86f34103068011783adef30488ebd2 (diff)
fixes #3886 (Не показывать "Всплывающие окна → События", если там пусто)
-rw-r--r--src/mir_app/src/popupOption.cpp16
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;
}