mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Add context menu to clear temporary settings.
This commit is contained in:
parent
79938b6dd0
commit
b7b9defaa6
3 changed files with 25 additions and 12 deletions
|
|
@ -64,6 +64,7 @@ public sealed class ModFileSystemSelector : FileSystemSelector<Mod, ModFileSyste
|
|||
SubscribeRightClickLeaf(ToggleLeafFavorite);
|
||||
SubscribeRightClickLeaf(DrawTemporaryOptions);
|
||||
SubscribeRightClickLeaf(l => QuickMove(l, _config.QuickMoveFolder1, _config.QuickMoveFolder2, _config.QuickMoveFolder3));
|
||||
SubscribeRightClickMain(ClearTemporarySettings, 105);
|
||||
SubscribeRightClickMain(ClearDefaultImportFolder, 100);
|
||||
SubscribeRightClickMain(() => ClearQuickMove(0, _config.QuickMoveFolder1, () => {_config.QuickMoveFolder1 = string.Empty; _config.Save();}), 110);
|
||||
SubscribeRightClickMain(() => ClearQuickMove(1, _config.QuickMoveFolder2, () => {_config.QuickMoveFolder2 = string.Empty; _config.Save();}), 120);
|
||||
|
|
@ -237,10 +238,16 @@ public sealed class ModFileSystemSelector : FileSystemSelector<Mod, ModFileSyste
|
|||
// Add custom context menu items.
|
||||
private void EnableDescendants(ModFileSystem.Folder folder)
|
||||
{
|
||||
if (ImGui.MenuItem("Enable Descendants"))
|
||||
if (ImUtf8.MenuItem("Enable Descendants"u8))
|
||||
SetDescendants(folder, true);
|
||||
}
|
||||
|
||||
private void ClearTemporarySettings()
|
||||
{
|
||||
if (ImUtf8.MenuItem("Clear Temporary Settings"u8))
|
||||
_collectionManager.Editor.ClearTemporarySettings(_collectionManager.Active.Current);
|
||||
}
|
||||
|
||||
private void DisableDescendants(ModFileSystem.Folder folder)
|
||||
{
|
||||
if (ImUtf8.MenuItem("Disable Descendants"u8))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue