Skip to content

Commit c623e4b

Browse files
Merge pull request #670 from Smartis2812/master
Ensure imported Config File is not read-only
2 parents 2213552 + 6b4fa0b commit c623e4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeMaid/UI/Dialogs/Options/OptionsViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ private void OnImportCommandExecuted(object parameter)
283283
try
284284
{
285285
File.Copy(dialog.FileName, ActiveSettingsPath, true);
286+
File.SetAttributes(ActiveSettingsPath, File.GetAttributes(ActiveSettingsPath) & ~FileAttributes.ReadOnly);
286287

287288
RefreshPackageSettings();
288289

0 commit comments

Comments
 (0)