Skip to content

Commit

Permalink
Added button to open app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tgraupmann committed Feb 26, 2024
1 parent 2d77b2a commit 3808d2a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using YoutubeTranscriptApi;
using static WinForm_Ollama_Copilot.OcrManager;
using static WinForm_Ollama_Copilot.SpeakManager;
using System.Diagnostics;

namespace WinForm_Ollama_Copilot
{
Expand Down Expand Up @@ -1750,5 +1751,12 @@ private void ChkUseTabs_CheckedChanged(object sender, EventArgs e)
{
UpdateConfiguration("UseTabs", ChkUseTabs.Checked.ToString());
}

private void BtnOpen_Click(object sender, EventArgs e)
{
// write C# to open application folder
string path = Path.GetDirectoryName(Application.ExecutablePath);
Process.Start(path);
}
}
}

0 comments on commit 3808d2a

Please sign in to comment.