2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

9 Commits

Author SHA1 Message Date
F K
fa5c978b34
Revert PluginCore use of event listening for current LogMonitor state (#64)
The order that listeners get notified isn't deterministic and as a result plugins which read the current state from PluginCore during the handling of a state change event may read a stale state resulting in unexpected results. PluginCore now reads a property directly from LogMonitor to avoid such inconsistencies.
2022-03-15 11:14:20 -02:30
F K
4f4ba88878
Add event-based LogMonitor state changes to better handle batch reads (#59)
* Add event-based LogMonitor state changes to better handle batch reads

Pre-reading hackily used read-all to suppress notifications. But that broke some assumptions about what read-all meant. Furthermore, the Core UI told plugins about read-all rather than the log monitor telling them -- which is really what should be telling them.

To address these concerns, LogMonitor now provides an event that both the PluginCore and PluginEventHandler listens to or tracking logging state allowing more granular information about the activities of LogMonitor, including distinguishing between ReadAll and Pre-read batches. Plugins no longer need to track if LogMonitor is in batch-read mode or not -- PluginCore now provides it. 

I've also converted all built-in plugins to use the new event-based system. The old system is marked deprecated and will go away once other known contributed plugins have converted to the new system.

* Change LogMonitorState enum to [Flags], drop 'None' state

As requested, and did associated simplifications and cleanup that followed.
2022-03-03 16:39:49 -03:30
F K
701f6f0b1c
Add new Rendering controls for notifications, add missing forwarding (#47)
Plugins authors can now optionally specify what ways their notifications are rendered (subject, of course, to user preferences/settings). The default is to render notifications in all available channels. Examples:
- Show native pop-up window only (ie. no voice/plugin notifiers)
- Disallow other plugin notifiers

This does not support selection of notifier plugins.

Furthermore, persistent notification updates were not previously being forwarded to anything but the native popup notifier. Now plugins and native voice are also supported (subject to user preferences) and respect the new rendering controls added here. There is currently no concept of closing notifications for the native voice or plugin-based notifiers.
2021-12-18 17:57:23 -03:30
Xjph
9e9659f71b Added HttpClient to Core interface. 2021-10-24 13:02:37 -02:30
Xjph
41334ae375 feat: wire up core methods for updating and cancelling notifications 2021-10-23 11:19:25 -02:30
Xjph
5159500644 Notification overhaul and update to avaloniaui 0.10.7 2021-10-12 20:45:00 -02:30
Xjph
c883821fb6 voice notifications and settings UI rework 2021-09-04 18:36:03 -02:30
Xjph
2d91474002 Removed unnecessary. Add summaryt for AddGrid Item. Add ClearGrid and ExecuteOnUIThread. 2021-06-06 12:58:32 -02:30
Xjph
a5154996ee Add project files. 2021-06-03 22:25:32 -02:30