refactor(MainFormPresenter.cs): change hotkey registration from Send to Publish for better event handling

This commit is contained in:
2025-08-29 23:53:37 +02:00
parent 43496480f5
commit b469d4a4f4

View File

@@ -190,7 +190,7 @@ namespace EveOPreview.Presenters {
this._configuration.ToggleAllThumbnailsHotkey = this.View.ToggleAllThumbnailsHotkey; this._configuration.ToggleAllThumbnailsHotkey = this.View.ToggleAllThumbnailsHotkey;
// Re-register hotkeys if they changed // Re-register hotkeys if they changed
await this._mediator.Send(new ReRegisterHotkeys()); await this._mediator.Publish(new ReRegisterHotkeys());
// Publish region settings update if they changed // Publish region settings update if they changed
if (this._configuration.EnableThumbnailRegionSnipping != this.View.EnableThumbnailRegionSnipping || if (this._configuration.EnableThumbnailRegionSnipping != this.View.EnableThumbnailRegionSnipping ||