mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-30 02:36:34 +00:00
Add check for changes in an open pck file before opening another one with 'LoadPck'
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user