Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Unlock all open members when application ends (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Feb 12, 2018
1 parent f099b9c commit 446c9c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ILEditor/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,22 @@ private void switchSystemToolStripMenuItem_Click(object sender, EventArgs e)
private void Editor_FormClosing(object sender, FormClosingEventArgs e)
{
MemberCache.Export();

//Unlock any members still open when application ends
RemoteSource source = null;
foreach (TabPage tab in editortabsleft.TabPages)
if (tab.Tag is RemoteSource)
{
source = tab.Tag as RemoteSource;
source.Unlock();
}

foreach (TabPage tab in editortabsright.TabPages)
if (tab.Tag is RemoteSource)
{
source = tab.Tag as RemoteSource;
source.Unlock();
}
}

#region Help
Expand Down

0 comments on commit 446c9c3

Please sign in to comment.