| 87 | { |
| 88 | |
| 89 | void HandleNotification(const CMuleNotiferBase& ntf) |
| 90 | { |
| 91 | if (wxThread::IsMain()) { |
| 92 | #ifdef AMULE_DAEMON |
| 93 | ntf.Notify(); |
| 94 | #else |
| 95 | if (theApp->amuledlg) { |
| 96 | ntf.Notify(); |
| 97 | } |
| 98 | #endif |
| 99 | } else { |
| 100 | CMuleGUIEvent evt(ntf.Clone()); |
| 101 | wxQueueEvent(wxTheApp, (evt).Clone()); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | |
| 106 | void HandleNotificationAlways(const CMuleNotiferBase& ntf) |