Skip to content

Commit

Permalink
Fix issue when empty settings are turned temporary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jan 11, 2025
1 parent e6872cf commit d4e6688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Penumbra/UI/ModsTab/ModPanelSettingsTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,10 @@ private void DrawRemoveSettings()
}
else
{
var actual = collectionManager.Active.Current.GetActualSettings(selection.Mod!.Index).Settings;
if (ImUtf8.ButtonEx("Turn Temporary"u8, "Copy the current settings over to temporary settings to experiment with them."u8))
collectionManager.Editor.SetTemporarySettings(collectionManager.Active.Current, selection.Mod!,
new TemporaryModSettings(selection.Settings, "yourself"));
new TemporaryModSettings(actual, "yourself"));
}
}
}

0 comments on commit d4e6688

Please sign in to comment.