Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: json save update!
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 24, 2024
1 parent 8106cf7 commit 67928aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/Configurations/Actions/GCDAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using ActionTimelineEx.Helpers;
using ECommons.DalamudServices;
using FFXIVClientStructs.FFXIV.Client.Game;
using ImGuiNET;
using System.ComponentModel;
using System.Numerics;
Expand All @@ -13,7 +14,6 @@ public class GCDAction : ActionSetting
{
internal override ActionSettingType Type => ActionSettingType.Action;


internal float Gcd
{
get
Expand Down
3 changes: 2 additions & 1 deletion ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using ECommons.ExcelServices;
using ECommons.GameHelpers;
using System.Numerics;
using XIVConfigUI;
using XIVConfigUI.Attributes;

namespace ActionTimelineEx.Configurations;
Expand Down Expand Up @@ -153,6 +154,6 @@ internal RotationsSetting RotationHelper

public void Save()
{
Svc.PluginInterface.SavePluginConfig(this);
File.WriteAllText(Svc.PluginInterface.ConfigFile.FullName, JsonHelper.SerializeObject(this));
}
}
2 changes: 1 addition & 1 deletion ActionTimelineEx/Localization/Localization.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.\n\"/atle toggle\" to toggle the rotation helper's visibility.",
"ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.",
"ActionTimelineEx.Punchline": "Show your actions in real-time.",
"XIVConfigUI.LocalString.Searching": "Search... ",
"ActionTimelineEx.Windows.RotationHelperItem": "Rotation Helper",
Expand Down
2 changes: 1 addition & 1 deletion ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Plugin(IDalamudPluginInterface pluginInterface)

try
{
Settings = pluginInterface.GetPluginConfig() as Settings ?? new Settings();
Settings = JsonHelper.DeserializeObject<Settings>(File.ReadAllText(pluginInterface.ConfigFile.FullName)) ?? new Settings();
}
catch(Exception ex)
{
Expand Down

0 comments on commit 67928aa

Please sign in to comment.