Skip to content

Commit

Permalink
use new api url
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Sep 10, 2022
1 parent a5d0fee commit 6782955
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PartyPlanner/PartyPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>Zhyra</Authors>
<Company></Company>
<Version>1.3.2</Version>
<Version>1.3.3</Version>
<Description>PartyVerse.app, directly on your client!</Description>
<Copyright>MIT</Copyright>
<PackageProjectUrl>https://github.com/edg-l/PartyPlanner</PackageProjectUrl>
Expand Down
5 changes: 2 additions & 3 deletions PartyPlanner/PartyVerseApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ public PartyVerseApi()

try
{
Assembly assembly = Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(Plugin.PluginInterface.AssemblyLocation.FullName);
version = fvi.FileVersion!;
} catch(Exception e)
{
PluginLog.Error(e, "error loading assembly");
}

graphQL = new GraphQLHttpClient("https://partyverse.app/api/", new NewtonsoftJsonSerializer());
graphQL = new GraphQLHttpClient("https://api.partyverse.app/", new NewtonsoftJsonSerializer());
graphQL.HttpClient.DefaultRequestHeaders.UserAgent.ParseAdd("Dalamud-PartyPlanner/" + version);

var serverIdsStr = System.Text.Encoding.Default.GetString(Properties.Resources.servers_ids);
Expand Down
8 changes: 4 additions & 4 deletions PartyPlanner/PluginUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public PluginUI(Configuration configuration)

try
{
Assembly assembly = Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(Plugin.PluginInterface.AssemblyLocation.FullName);
string version = fvi.FileVersion!;
windowTitle = string.Format("PartyPlanner v{0}", version);
} catch(Exception e)
}
catch (Exception e)
{
PluginLog.Error(e, "error loading assembly");
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public void DrawEventRow(Models.EventType ev, Models.ServerType serverType)
}
ImGui.PopStyleColor();

if(ImGui.IsItemHovered())
if (ImGui.IsItemHovered())
{
ImGui.BeginTooltip();
ImGui.TextColored(greenColor, ev.Title);
Expand Down

0 comments on commit 6782955

Please sign in to comment.