Skip to content

Commit 355f674

Browse files
committed
added a button to open the app data directory
1 parent db5fc9d commit 355f674

2 files changed

Lines changed: 44 additions & 7 deletions

File tree

GPUPrefSwitcherGUI/OptionsForm.Designer.cs

Lines changed: 33 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GPUPrefSwitcherGUI/OptionsForm.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Diagnostics;
66
using System.IO;
77
using System.Windows.Forms;
8+
using System.Windows.Shapes;
89

910
namespace GPUPrefSwitcherGUI
1011
{
@@ -333,5 +334,15 @@ private void button1_Click(object sender, EventArgs e)
333334
var f = new GPUPrefSwitcherRepairer.RepairForm();
334335
f.Show();
335336
}
337+
338+
private void OpenAppDirButton_Click(object sender, EventArgs e)
339+
{
340+
using Process fileopener = new Process();
341+
342+
fileopener.StartInfo.FileName = "explorer";
343+
fileopener.StartInfo.Arguments = "\"" + System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"AppData") + "\"";
344+
fileopener.Start();
345+
346+
}
336347
}
337348
}

0 commit comments

Comments
 (0)