Skip to content

Commit 7d04ae5

Browse files
committed
Fix broken auto-save for axes!
1 parent 9485089 commit 7d04ae5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Falcon BMS Alternative Launcher/Windows/AxisAssignWindow.xaml.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public AxisAssignWindow(MainWindow mainWindow, InGameAxAssgn axisAssign, object
1717
{
1818
InitializeComponent();
1919

20+
this.Owner = mainWindow;
21+
2022
this.mainWindow = mainWindow;
2123
this.axisAssign = axisAssign;
2224

@@ -436,10 +438,6 @@ private void Save_Click(object sender, RoutedEventArgs e)
436438
AxisDetectionTimer.Stop();
437439
sw.Stop();
438440

439-
// Save the XML and Key files, after each change user makes.
440-
MainWindow.deviceControl.SaveXml();
441-
Program.mainWin.appReg.getOverrideWriter().SaveKeyMapping(MainWindow.inGameAxis, MainWindow.deviceControl);
442-
443441
Close();
444442
}
445443

Falcon BMS Alternative Launcher/Windows/MainWindowAxisAssign.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ private void Assign_Click(object sender, RoutedEventArgs e)
360360
joyAssign_2_inGameAxis();
361361
ResetAssgnWindow();
362362

363+
// Save the XML and Key files, after each change user makes.
364+
MainWindow.deviceControl.SaveXml();
365+
this.appReg.getOverrideWriter().SaveKeyMapping(MainWindow.inGameAxis, MainWindow.deviceControl);
366+
363367
NewDeviceDetectTimer.Start();
364368
AxisMovingTimer.Start();
365369
}

0 commit comments

Comments
 (0)