mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Fix?
This commit is contained in:
parent
791583e183
commit
e4f9150c9f
3 changed files with 6 additions and 7 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9bbc3b98efc2af3707adc75b716d4f3072908e31
|
Subproject commit cd56068aac3762c7b011d13a04637a3c3f09775f
|
||||||
|
|
@ -13,16 +13,16 @@ public class PluginStateApi(Configuration config, CommunicatorService communicat
|
||||||
public string GetConfiguration()
|
public string GetConfiguration()
|
||||||
=> JsonConvert.SerializeObject(config, Formatting.Indented);
|
=> JsonConvert.SerializeObject(config, Formatting.Indented);
|
||||||
|
|
||||||
public event Action<string, bool>? ModDirectoryChanged
|
public event Action<string, bool> ModDirectoryChanged
|
||||||
{
|
{
|
||||||
add => communicator.ModDirectoryChanged.Subscribe(value!, Communication.ModDirectoryChanged.Priority.Api);
|
add => communicator.ModDirectoryChanged.Subscribe(value, Communication.ModDirectoryChanged.Priority.Api);
|
||||||
remove => communicator.ModDirectoryChanged.Unsubscribe(value!);
|
remove => communicator.ModDirectoryChanged.Unsubscribe(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool GetEnabledState()
|
public bool GetEnabledState()
|
||||||
=> config.EnableMods;
|
=> config.EnableMods;
|
||||||
|
|
||||||
public event Action<bool>? EnabledChange
|
public event Action<bool> EnabledChange
|
||||||
{
|
{
|
||||||
add => communicator.EnabledChanged.Subscribe(value!, EnabledChanged.Priority.Api);
|
add => communicator.EnabledChanged.Subscribe(value!, EnabledChanged.Priority.Api);
|
||||||
remove => communicator.EnabledChanged.Unsubscribe(value!);
|
remove => communicator.EnabledChanged.Unsubscribe(value!);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using OtterGui.Classes;
|
using OtterGui.Classes;
|
||||||
using Penumbra.Api;
|
|
||||||
using Penumbra.Api.Api;
|
using Penumbra.Api.Api;
|
||||||
|
|
||||||
namespace Penumbra.Communication;
|
namespace Penumbra.Communication;
|
||||||
|
|
@ -15,7 +14,7 @@ public sealed class ModDirectoryChanged() : EventWrapper<string, bool, ModDirect
|
||||||
{
|
{
|
||||||
public enum Priority
|
public enum Priority
|
||||||
{
|
{
|
||||||
/// <seealso cref="PenumbraApi.ModDirectoryChanged"/>
|
/// <seealso cref="PluginStateApi.ModDirectoryChanged"/>
|
||||||
Api = 0,
|
Api = 0,
|
||||||
|
|
||||||
/// <seealso cref="UI.FileDialogService.OnModDirectoryChange"/>
|
/// <seealso cref="UI.FileDialogService.OnModDirectoryChange"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue