diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-12 11:55:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-12 11:55:11 +0300 |
commit | 90239852e737675444727f45c2b6eb0ced31f989 (patch) | |
tree | c1e3f7321d8be6daf7484fb42e2013ec676877c8 /plugins/NewEventNotify/src/options.cpp | |
parent | c9a014304af901c2266e1170b030956e8601e293 (diff) |
minor interface glitches in NEN
Diffstat (limited to 'plugins/NewEventNotify/src/options.cpp')
-rw-r--r-- | plugins/NewEventNotify/src/options.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/NewEventNotify/src/options.cpp b/plugins/NewEventNotify/src/options.cpp index 3b0d19c98f..b39975af81 100644 --- a/plugins/NewEventNotify/src/options.cpp +++ b/plugins/NewEventNotify/src/options.cpp @@ -55,10 +55,10 @@ void CMPlugin::OptionsRead(void) other.textColor = getDword(OPT_COLTEXT_OTHERS, DEFAULT_COLTEXT);
other.iDelay = getDword(OPT_DELAY_OTHERS, DEFAULT_DELAY);
- maskNotify = getByte(OPT_MASKNOTIFY, DEFAULT_MASKNOTIFY);
- maskActL = getByte(OPT_MASKACTL, DEFAULT_MASKACTL);
- maskActR = getByte(OPT_MASKACTR, DEFAULT_MASKACTR);
- maskActTE = getByte(OPT_MASKACTTE, DEFAULT_MASKACTE);
+ maskNotify = getByte(OPT_MASKNOTIFY, MASK_MESSAGE | MASK_ERROR | MASK_FILE | MASK_OTHER);
+ maskActL = getByte(OPT_MASKACTL, MASK_OPEN | MASK_REMOVE | MASK_DISMISS);
+ maskActR = getByte(OPT_MASKACTR, MASK_REMOVE | MASK_DISMISS);
+ maskActTE = getByte(OPT_MASKACTTE, MASK_DISMISS);
iDelayDefault = DBGetContactSettingRangedWord(NULL, "Popup", "Seconds", SETTING_LIFETIME_DEFAULT, SETTING_LIFETIME_MIN, SETTING_LIFETIME_MAX);
@@ -211,6 +211,7 @@ public: pwszSection = TranslateT("Notify me of...");
m_opts.AddOption(pwszSection, TranslateT("Message"), g_plugin.maskNotify, MASK_MESSAGE);
+ m_opts.AddOption(pwszSection, TranslateT("Error"), g_plugin.maskNotify, MASK_ERROR);
m_opts.AddOption(pwszSection, TranslateT("File"), g_plugin.maskNotify, MASK_FILE);
m_opts.AddOption(pwszSection, TranslateT("Others"), g_plugin.maskNotify, MASK_OTHER);
@@ -293,6 +294,7 @@ public: {
GrabData();
PopupShow(0, 0, EVENTTYPE_MESSAGE);
+ PopupShow(0, 0, EVENTTYPE_ERRMSG);
PopupShow(0, 0, EVENTTYPE_FILE);
PopupShow(0, 0, -1);
}
|