Skip to content

Commit

Permalink
New windows load in the same monitor as octgn
Browse files Browse the repository at this point in the history
Fixes octgn#977
  • Loading branch information
kellyelton committed Aug 15, 2013
1 parent 6a67fc9 commit 5099e5f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions octgnFX/Octgn/Controls/OctgnChrome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,19 @@ public OctgnChrome()
this.AllowsTransparency = false;
base.Background = new SolidColorBrush(Color.FromRgb(64, 64, 64));
}
Program.OnOptionsChanged += ProgramOnOnOptionsChanged;
SubscriptionModule.Get().IsSubbedChanged += OnIsSubbedChanged;
}

Program.OnOptionsChanged += ProgramOnOnOptionsChanged;
SubscriptionModule.Get().IsSubbedChanged += OnIsSubbedChanged;
this.WindowStartupLocation = WindowStartupLocation.CenterScreen;

var mainWindow = WindowManager.Main ?? System.Windows.Application.Current.MainWindow;
if (mainWindow != null && mainWindow.Owner == null && !Equals(mainWindow, this) && mainWindow.IsVisible)
{
this.WindowStartupLocation = WindowStartupLocation.Manual;
this.Left = mainWindow.Left + 10;
this.Top = mainWindow.Top + 10;
}

base.Content = this.MainBorder;

Expand Down
3 changes: 2 additions & 1 deletion recentchanges.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Updated some release automation tasks - Kelly
Made game sounds async - Kelly
Add mp3 support for sound playback - Kelly
Add mp3 support for sound playback - Kelly
New windows created load in the same monitor as OCTGN #977 - Kelly

0 comments on commit 5099e5f

Please sign in to comment.