Skip to content

Commit b918a95

Browse files
committed
Show XG Mobile & Update message box on top of main form #5038
1 parent 18a4ef5 commit b918a95

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

app/AutoUpdate/AutoUpdateControl.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ async void CheckForUpdatesAsync(bool force = false)
109109

110110
if (AppConfig.GetString("skip_version") != tag)
111111
{
112-
DialogResult dialogResult = MessageBox.Show(Properties.Strings.DownloadUpdate + ": G-Helper " + tag + "?", "Update", MessageBoxButtons.YesNo);
112+
DialogResult dialogResult = DialogResult.No;
113+
114+
settings.Invoke((System.Windows.Forms.MethodInvoker)delegate
115+
{
116+
dialogResult = MessageBox.Show(settings, Properties.Strings.DownloadUpdate + ": G-Helper " + tag + "?", "Update", MessageBoxButtons.YesNo);
117+
});
118+
113119
if (dialogResult == DialogResult.Yes)
114120
AutoUpdate(url);
115121
else

app/Gpu/GPUModeControl.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,12 @@ public void ToggleXGM(bool silent = false)
288288
}
289289
else
290290
{
291-
DialogResult dialogResult = MessageBox.Show("Did you close all applications running on XG Mobile?", "Disabling XG Mobile", MessageBoxButtons.YesNo);
291+
DialogResult dialogResult = DialogResult.No;
292+
settings.Invoke((MethodInvoker)delegate
293+
{
294+
dialogResult = MessageBox.Show(settings, "Did you close all applications running on XG Mobile?", "Disabling XG Mobile", MessageBoxButtons.YesNo);
295+
});
296+
292297
if (dialogResult == DialogResult.Yes)
293298
{
294299
Program.acpi.DeviceSet(AsusACPI.GPUXG, 0, "GPU XGM");

0 commit comments

Comments
 (0)