mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Improving the logic to make sure new windows are moved to the front, so the user can't miss them.
This commit is contained in:
parent
7938ab5dad
commit
9d7299e5ea
5 changed files with 52 additions and 26 deletions
|
@ -60,7 +60,14 @@ namespace GreenshotPlugin.Controls {
|
|||
browser.ScriptErrorsSuppressed = false;
|
||||
browser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(browser_DocumentCompleted);
|
||||
browser.Navigate(new Uri(authorizationLink));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Make sure the form is visible
|
||||
/// </summary>
|
||||
/// <param name="e">EventArgs</param>
|
||||
protected override void OnShown(EventArgs e) {
|
||||
base.OnShown(e);
|
||||
WindowDetails.ToForeground(Handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue