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

Commit

Permalink
reduced OB refresh to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijabase committed Oct 12, 2021
1 parent cc110b3 commit 9f0d3f8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion UI/Components/EditorElement/EditorElement.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@ public void Save(bool force = false)
{
using var fs = new FileStream(_FullFilePath, FileMode.Create, FileAccess.Write, FileShare.None);
editor.Save(fs);
Program.MainWindow.RefreshObjectBrowser();
}
catch (Exception e)
{
Expand Down
5 changes: 0 additions & 5 deletions UI/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@ public bool TryLoadSourceFile(string filePath, out EditorElement outEditor, bool
BlendOverEffect.Begin();
}

if (!SearchMode)
{
RefreshObjectBrowser();
}

return true;
}

Expand Down
1 change: 0 additions & 1 deletion UI/MainWindow/MainWindowCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ private void Command_New()
File.Create(newFilePath).Close();

AddEditorElement(new FileInfo(newFilePath), $"New Plugin ({newFileNum}).sp", true, out _);
RefreshObjectBrowser();
}
catch (Exception ex)
{
Expand Down
2 changes: 0 additions & 2 deletions UI/MainWindow/MainWindowSPCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ await this.ShowMessageAsync(Program.Translations.GetLanguage("SPCompNotStarted")
}
}

RefreshObjectBrowser();
await progressTask.CloseAsync();
}
InCompiling = false;
Expand Down Expand Up @@ -383,7 +382,6 @@ private void Copy_Plugins()
{
CompileOutputRow.Height = new GridLength(200.0);
}
RefreshObjectBrowser();
});
}
}
Expand Down

0 comments on commit 9f0d3f8

Please sign in to comment.