mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Partly revert explicitly closing plugin menu on click.
It's only necessary for the conflicts filter, and causes other issues if used for the other menu entries. Closes #425.
This commit is contained in:
@@ -344,7 +344,6 @@ loot-clear-metadata
|
||||
}
|
||||
|
||||
card.data.isEditorOpen = true;
|
||||
card.data.isMenuOpen = false;
|
||||
|
||||
/* Fire an open event, so that the UI can enter edit mode. */
|
||||
card.dispatchEvent(new CustomEvent('loot-editor-open', {
|
||||
@@ -365,14 +364,12 @@ loot-clear-metadata
|
||||
},
|
||||
|
||||
onCopyMetadata: function(evt) {
|
||||
getMenuItemCard(this).data.isMenuOpen = false;
|
||||
evt.target.dispatchEvent(new CustomEvent('loot-copy-metadata', {
|
||||
bubbles: true,
|
||||
}));
|
||||
},
|
||||
|
||||
onClearMetadata: function(evt) {
|
||||
getMenuItemCard(this).data.isMenuOpen = false;
|
||||
evt.target.dispatchEvent(new CustomEvent('loot-clear-metadata', {
|
||||
bubbles: true,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user