mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Add extra read-only checks
This commit is contained in:
parent
894587554c
commit
1073357569
@ -164,6 +164,8 @@ namespace Bloxstrap
|
||||
if (result != MessageBoxResult.Yes)
|
||||
return;
|
||||
|
||||
Filesystem.AssertReadOnly(Paths.Application);
|
||||
|
||||
// yes, this is EXTREMELY hacky, but the updater process that launched the
|
||||
// new version may still be open and so we have to wait for it to close
|
||||
int attempts = 0;
|
||||
|
@ -40,6 +40,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(Paths.CustomFont)!);
|
||||
File.Copy(dialog.FileName, Paths.CustomFont);
|
||||
Filesystem.AssertReadOnly(Paths.CustomFont);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user