mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Allow multi-selection deletion.
This commit is contained in:
parent
291613f775
commit
a0396ec0e0
2 changed files with 2 additions and 14 deletions
|
|
@ -157,19 +157,7 @@ public sealed class DesignFileSystemSelector : FileSystemSelector<Design, Design
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DeleteButton(Vector2 size)
|
private void DeleteButton(Vector2 size)
|
||||||
{
|
=> DeleteSelectionButton(size, _config.DeleteDesignModifier, "design", "designs", _designManager.Delete);
|
||||||
var keys = _config.DeleteDesignModifier.IsActive();
|
|
||||||
var tt = SelectedLeaf == null
|
|
||||||
? "No design selected."
|
|
||||||
: "Delete the currently selected design entirely from your drive.\n"
|
|
||||||
+ "This can not be undone.";
|
|
||||||
if (!keys)
|
|
||||||
tt += $"\nHold {_config.DeleteDesignModifier} while clicking to delete the design.";
|
|
||||||
|
|
||||||
if (ImGuiUtil.DrawDisabledButton(FontAwesomeIcon.Trash.ToIconString(), size, tt, SelectedLeaf == null || !keys, true)
|
|
||||||
&& Selected != null)
|
|
||||||
_designManager.Delete(Selected);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DrawNewDesignPopup()
|
private void DrawNewDesignPopup()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9b431c1f491c0739132da65da08bc092d7ff79da
|
Subproject commit a15f66c1200342d833a5bd94aae1e777b691fbaa
|
||||||
Loading…
Add table
Add a link
Reference in a new issue