Add check for changes in an open pck file before opening another one with 'LoadPck'

This commit is contained in:
miku-666
2023-02-28 17:52:42 +01:00
parent 9da6542988
commit ff605b03e4

View File

@@ -92,6 +92,10 @@ namespace PckStudio
public void LoadPck(string filepath)
{
treeViewMain.Nodes.Clear();
if (currentPCK is not null && !saved)
{
checkSaveState();
}
currentPCK = openPck(filepath);
if (currentPCK == null)
{