mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 18:32:12 +00:00
Fixed file drops being ignored after closing a dialog with its own drop area
This commit is contained in:
parent
e08b45b26f
commit
87a0c27188
@ -222,6 +222,11 @@ public partial class AttachDocuments : MSGComponentBase
|
||||
protected override void DisposeResources()
|
||||
{
|
||||
this.MediaTranscriptionService.StateChanged -= this.OnMediaImportStateChanged;
|
||||
|
||||
// Release the drop area. Without this, drop areas below this one would count this component
|
||||
// forever and would stop catching dropped files:
|
||||
_ = this.MessageBus.SendMessage(this, Event.UNREGISTER_FILE_DROP_AREA, this.Layer);
|
||||
|
||||
base.DisposeResources();
|
||||
}
|
||||
|
||||
|
||||
@ -174,10 +174,16 @@ public partial class ReadFileContent : MSGComponentBase
|
||||
this.MediaTranscriptionService.AcknowledgeDelivery(delivery);
|
||||
}
|
||||
|
||||
/// <summary>Unsubscribes from the singleton media service.</summary>
|
||||
/// <summary>Unsubscribes from the singleton media service and releases the drop area.</summary>
|
||||
protected override void DisposeResources()
|
||||
{
|
||||
this.MediaTranscriptionService.StateChanged -= this.OnMediaImportStateChanged;
|
||||
|
||||
// Release the drop area. Without this, drop areas below this one would count this component
|
||||
// forever and would stop catching dropped files:
|
||||
if (this.EnableDragDrop)
|
||||
_ = this.MessageBus.SendMessage(this, Event.UNREGISTER_FILE_DROP_AREA, this.Layer);
|
||||
|
||||
base.DisposeResources();
|
||||
}
|
||||
|
||||
|
||||
@ -3,6 +3,8 @@
|
||||
- Added organization-configurable defaults and visibility controls for the Visual Briefing Assistant.
|
||||
- Added a share button for plugins, which uses the native share dialog on Windows and macOS. For Linux, we added an export option for plugins, which stores the plugin archive at a location of your choice.
|
||||
- Added an import button on the plugin page to install plugin archives directly from your files.
|
||||
- Added the option to import plugins by dropping a plugin archive onto the plugin page.
|
||||
- Added the dedicated file extension `.mwplugin` for plugin archives.
|
||||
- Added an option for organizations to disable importing, sharing, and exporting plugins.
|
||||
- Fixed dropping files after you closed a dialog that accepts files itself. Such a dialog takes over dropped files while it is open, but never handed that role back when you closed it. Afterwards, the chat and the assistants silently ignored dropped files until you switched to another page. Each time you opened such a dialog again, the problem got worse.
|
||||
- Upgraded dependencies to their latest versions to improve security and stability.
|
||||
Loading…
Reference in New Issue
Block a user