Skip to content

Commit 673c578

Browse files
committed
replaced function to open link
- using dalamud utility instead - bumped version to 1.0.2.0
1 parent cf24b48 commit 673c578

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

dalamud-chatgpt/ChatGPTPlugin.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using System.Diagnostics;
2-
using System.Net.Http;
1+
using System.Net.Http;
32
using System.Net.Http.Headers;
43
using System.Text;
54
using System.Threading.Tasks;
65
using Dalamud.Game.Command;
76
using Dalamud.Game.Gui;
87
using Dalamud.IoC;
8+
using Dalamud.Utility;
99
using ImGuiNET;
1010
using Newtonsoft.Json.Linq;
1111

@@ -102,12 +102,7 @@ private void DrawConfiguration()
102102
if (ImGui.Button("Get API Key"))
103103
{
104104
const string apiKeysUrl = "https://beta.openai.com/account/api-keys";
105-
var processStartInfo = new ProcessStartInfo
106-
{
107-
UseShellExecute = true,
108-
FileName = apiKeysUrl
109-
};
110-
Process.Start(processStartInfo);
105+
Util.OpenLink(apiKeysUrl);
111106
}
112107

113108
ImGui.Checkbox("remove line breaks from responses", ref configLineBreaks);

dalamud-chatgpt/dalamud-chatgpt.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1111
<OutputPath>$(AppData)\Eisenhuth\DalamudDevPlugins\ChatGPTPlugin\</OutputPath>
1212
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
13-
<AssemblyVersion>1.0.1.1</AssemblyVersion>
13+
<AssemblyVersion>1.0.2.0</AssemblyVersion>
1414
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1515
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
1616
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-chatgpt</PackageProjectUrl>

0 commit comments

Comments
 (0)