mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix issue when empty settings are turned temporary.
This commit is contained in:
parent
e6872cff64
commit
d4e6688369
1 changed files with 2 additions and 1 deletions
|
|
@ -249,9 +249,10 @@ public class ModPanelSettingsTab(
|
|||
}
|
||||
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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue