Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 9f0d3f8

Browse files
committed
reduced OB refresh to improve performance
1 parent cc110b3 commit 9f0d3f8

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

UI/Components/EditorElement/EditorElement.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,6 @@ public void Save(bool force = false)
929929
{
930930
using var fs = new FileStream(_FullFilePath, FileMode.Create, FileAccess.Write, FileShare.None);
931931
editor.Save(fs);
932-
Program.MainWindow.RefreshObjectBrowser();
933932
}
934933
catch (Exception e)
935934
{

UI/MainWindow/MainWindow.xaml.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,6 @@ public bool TryLoadSourceFile(string filePath, out EditorElement outEditor, bool
363363
BlendOverEffect.Begin();
364364
}
365365

366-
if (!SearchMode)
367-
{
368-
RefreshObjectBrowser();
369-
}
370-
371366
return true;
372367
}
373368

UI/MainWindow/MainWindowCommands.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ private void Command_New()
102102
File.Create(newFilePath).Close();
103103

104104
AddEditorElement(new FileInfo(newFilePath), $"New Plugin ({newFileNum}).sp", true, out _);
105-
RefreshObjectBrowser();
106105
}
107106
catch (Exception ex)
108107
{

UI/MainWindow/MainWindowSPCompiler.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ await this.ShowMessageAsync(Program.Translations.GetLanguage("SPCompNotStarted")
313313
}
314314
}
315315

316-
RefreshObjectBrowser();
317316
await progressTask.CloseAsync();
318317
}
319318
InCompiling = false;
@@ -383,7 +382,6 @@ private void Copy_Plugins()
383382
{
384383
CompileOutputRow.Height = new GridLength(200.0);
385384
}
386-
RefreshObjectBrowser();
387385
});
388386
}
389387
}

0 commit comments

Comments
 (0)