diff --git a/PCK-Studio/Controls/PckEditor.cs b/PCK-Studio/Controls/PckEditor.cs index d5bd4e7f..edef759a 100644 --- a/PCK-Studio/Controls/PckEditor.cs +++ b/PCK-Studio/Controls/PckEditor.cs @@ -1655,5 +1655,10 @@ namespace PckStudio.Controls isTemplateFile = true; return true; } + + public void UpdateView() + { + BuildMainTreeView(); + } } } \ No newline at end of file diff --git a/PCK-Studio/Interfaces/IPckEditor.cs b/PCK-Studio/Interfaces/IPckEditor.cs index 825f1e05..5473832b 100644 --- a/PCK-Studio/Interfaces/IPckEditor.cs +++ b/PCK-Studio/Interfaces/IPckEditor.cs @@ -22,5 +22,7 @@ namespace PckStudio.Interfaces void SaveTo(string filepath); void Close(); + + void UpdateView(); } } \ No newline at end of file diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 7505e24c..39cf01d8 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -131,12 +131,9 @@ namespace PckStudio { if (TryGetEditor(out IPckEditor editor)) { - //TODO - //editor.BuildMainTreeView(); + editor.UpdateView(); } }); - - //UpdateRichPresence(); } private void MainForm_FormClosing(object sender, FormClosingEventArgs e)