From e09ffc018e6f89ddef84d6db42ef056a033b239b Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 28 Jun 2023 17:12:13 +0200 Subject: [PATCH] IPckEditor - Added UpdateView method --- PCK-Studio/Controls/PckEditor.cs | 5 +++++ PCK-Studio/Interfaces/IPckEditor.cs | 2 ++ PCK-Studio/MainForm.cs | 5 +---- 3 files changed, 8 insertions(+), 4 deletions(-) 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)