mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Sidebar - Fix importing
This commit is contained in:
parent
4722aa413b
commit
3257f94548
@ -165,12 +165,19 @@ namespace Artemis.UI.Screens.Sidebar
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the temporary profile configuration
|
try
|
||||||
_profileService.RemoveProfileConfiguration(_profileConfiguration);
|
{
|
||||||
// Import the new profile configuration
|
ProfileConfiguration profileConfiguration = _profileService.ImportProfile(_profileCategory, profileConfigurationExportModel);
|
||||||
_profileService.ImportProfile(_profileCategory, profileConfigurationExportModel);
|
|
||||||
|
// Remove the temporary profile configuration
|
||||||
Close(_profileConfiguration);
|
_profileService.RemoveProfileConfiguration(_profileConfiguration);
|
||||||
|
|
||||||
|
Close(profileConfiguration);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
_windowService.ShowExceptionDialog("Import profile failed", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ExecuteDelete()
|
private async Task ExecuteDelete()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user