Skip to content

Commit

Permalink
Merge pull request #1148 from VladiStep/codeTabsSwitchFix
Browse files Browse the repository at this point in the history
Fix of the code tabs switching bugs.
  • Loading branch information
Grossley authored Jan 10, 2023
2 parents 3cc23d9 + 63f76e1 commit ad5a84b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private async void UserControl_DataContextChanged(object sender, DependencyPrope
CurrentDecompiled is not null && CurrentDecompiled != code)
{
DecompiledSkipped = true;
DecompiledEditor_LostFocus(sender, null);
await DecompiledLostFocusBody(sender, null);

}
else if (DisassemblyTab.IsSelected && DisassemblyFocused && DisassemblyChanged &&
Expand All @@ -241,9 +241,12 @@ private async void UserControl_DataContextChanged(object sender, DependencyPrope
DisassemblyEditor_LostFocus(sender, null);
}

DecompiledEditor_LostFocus(sender, null);
await DecompiledLostFocusBody(sender, null);
DisassemblyEditor_LostFocus(sender, null);

DecompiledYet = false;
DisassembledYet = false;

if (MainWindow.CodeEditorDecompile != Unstated) //if opened from the code search results "link"
{
if (MainWindow.CodeEditorDecompile == DontDecompile && code != CurrentDisassembled)
Expand Down

0 comments on commit ad5a84b

Please sign in to comment.