From 7c4dc4ab8047557b16cafec98d79e9d36b335a26 Mon Sep 17 00:00:00 2001 From: Miepee Date: Tue, 1 Nov 2022 17:36:35 +0100 Subject: [PATCH] Todo + launcher update linux safety --- AM2RLauncher/AM2RLauncher/LauncherUpdater.cs | 2 +- .../AM2RLauncher/MainForm/CustomControls/CustomButton.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs index f9e240a..5b1bc19 100644 --- a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs +++ b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs @@ -261,7 +261,7 @@ public static class LauncherUpdater MainForm.CopyOldConfigToNewConfig(); log.Info("Files extracted. Preparing to restart executable..."); - if (OS.IsLinux) Process.Start("chmod", "+x " + updatePath + "/AM2RLauncher.Gtk"); + if (OS.IsLinux) Process.Start("chmod", "+x " + updatePath + "/" + CrossPlatformOperations.LauncherName); // And finally we restart, and boot into the new file Process.Start(updatePath + "/" + CrossPlatformOperations.LauncherName); diff --git a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs index f0314ec..4c52959 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs @@ -137,6 +137,7 @@ public class CustomButton : Drawable /// /// Event raised, when this control gets focused. /// + //TODO: change focus via keyboard arrow keys protected override void OnGotFocus(EventArgs e) { hover = true;