feedback for profile imports

This commit is contained in:
goat 2023-04-10 22:53:35 +02:00
parent 91ada49fa7
commit 4b2f649215
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -69,10 +69,12 @@ internal class ProfileManagerWidget
try try
{ {
profman.ImportProfile(ImGui.GetClipboardText()); profman.ImportProfile(ImGui.GetClipboardText());
Service<NotificationManager>.Get().AddNotification("Profile successfully imported!", type: NotificationType.Success);
} }
catch (Exception ex) catch (Exception ex)
{ {
Log.Error(ex, "Could not import profile"); Log.Error(ex, "Could not import profile");
Service<NotificationManager>.Get().AddNotification("Could not import profile.", type: NotificationType.Error);
} }
} }