Skip to content

Commit

Permalink
Implement saving window position
Browse files Browse the repository at this point in the history
  • Loading branch information
CarbonNeuron committed Jan 4, 2021
1 parent 523b101 commit b822f38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions AUCapture-WPF/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ protected override void OnStartup(StartupEventArgs e)

var mainWindow = new MainWindow();
this.MainWindow = mainWindow;
Screen screen = Screen.PrimaryScreen;

mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
Settings.conInterface = new WPFLogger(mainWindow);
IPCAdapter.getInstance().OnToken += OnTokenHandler;
socket.Init();
Expand Down
2 changes: 1 addition & 1 deletion AUCapture-WPF/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
TitleCharacterCasing="Normal"
ShowSystemMenu="False"
ShowSystemMenuOnRightClick="False"
WindowStartupLocation="CenterScreen"
SaveWindowPosition="True"
dialogs:DialogParticipation.Register="{Binding }"
ContentRendered="MainWindow_OnContentRendered" Loaded="MetroWindow_Loaded" TryToBeFlickerFree="True"
MinWidth="300" MinHeight="200">
Expand Down

0 comments on commit b822f38

Please sign in to comment.