mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11: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)
|
if (result != MessageBoxResult.Yes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Filesystem.AssertReadOnly(Paths.Application);
|
||||||
|
|
||||||
// yes, this is EXTREMELY hacky, but the updater process that launched the
|
// 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
|
// new version may still be open and so we have to wait for it to close
|
||||||
int attempts = 0;
|
int attempts = 0;
|
||||||
|
@ -40,6 +40,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(Paths.CustomFont)!);
|
Directory.CreateDirectory(Path.GetDirectoryName(Paths.CustomFont)!);
|
||||||
File.Copy(dialog.FileName, Paths.CustomFont);
|
File.Copy(dialog.FileName, Paths.CustomFont);
|
||||||
|
Filesystem.AssertReadOnly(Paths.CustomFont);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user