Skip to content

Commit

Permalink
Update FileOpenHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Feb 4, 2016
1 parent a9ef601 commit 75c2ee8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/MyToolkit.Extended.Wpf/Utilities/FileOpenHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public void Initialize(Window window)
}
catch { }
});
thread.IsBackground = true;
thread.Start();

window.Closed += (sender, eventArgs) => cancelEvent.Set();
window.Dispatcher.ShutdownStarted += (sender, eventArgs) =>
{
cancelEvent.Set();
};
}

private string GetHash(string text)
Expand Down Expand Up @@ -155,4 +156,4 @@ private void OnFileOpened(string fileName)
});
}
}
}
}

0 comments on commit 75c2ee8

Please sign in to comment.