Notify the user when there are issues when removing a provider

This commit is contained in:
Thorsten Sommer 2025-04-06 11:18:41 +02:00
parent 6185db733a
commit b412b41f59
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -105,7 +105,9 @@ public partial class SettingsPanelProviders : SettingsPanelBase
this.SettingsManager.ConfigurationData.Providers.Remove(provider); this.SettingsManager.ConfigurationData.Providers.Remove(provider);
await this.SettingsManager.StoreSettings(); await this.SettingsManager.StoreSettings();
} }
else
await this.MessageBus.SendError(new(Icons.Material.Filled.Error, deleteSecretResponse.Issue));
await this.UpdateProviders(); await this.UpdateProviders();
await this.MessageBus.SendMessage<bool>(this, Event.CONFIGURATION_CHANGED); await this.MessageBus.SendMessage<bool>(this, Event.CONFIGURATION_CHANGED);
} }