Skip to content

Commit

Permalink
Update BaseTweak.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Caraxi committed Oct 10, 2023
1 parent acff97c commit d67f759
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TweakSystem/BaseTweak.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public abstract class BaseTweak {

public virtual bool Ready { get; protected set; }
public virtual bool Enabled { get; protected set; }
protected virtual bool Unloading { get; private set; } = true;

private bool hasPreviewImage;
private IDalamudTextureWrap previewImage;
Expand Down Expand Up @@ -524,6 +525,7 @@ private void AutoSaveConfig() {


internal void InternalEnable() {
Unloading = false;
if (!signatureHelperInitialized) {
SignatureHelper.Initialise(this);
signatureHelperInitialized = true;
Expand Down Expand Up @@ -553,6 +555,7 @@ protected virtual void Enable() {
}

internal void InternalDisable() {
Unloading = true;
Disable();
EventController.UnregisterEvents(this);

Expand Down

0 comments on commit d67f759

Please sign in to comment.