mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fixed so, after dragging a pane tab to a new location, the pane it was in before selects its most recent remaining tab instead of being blank
This commit is contained in:
@@ -15,7 +15,8 @@ The selected tab on each draggable pane will now be remembered between sessions
|
||||
Fixed bug where hover effect didn't work the first time hovering over a row that had just been deselected
|
||||
Fixed bug where middle and right clicking buttons did the same behavior as left clicking, and fixed bug where clicking multiple buttons quickly (such as filters) while moving the mouse around would result in clicks not registering sometimes.
|
||||
Fixed bug where entire Deck Editor would refresh when opening a deck (causing Card Catalog to flicker)
|
||||
Fix so cards are "selected" on mouse up instead of mouse down, allowing things like drag drop and zoom to work if the card is currently actionable
|
||||
Fixed so cards are "selected" on mouse up instead of mouse down, allowing things like drag drop and zoom to work if the card is currently actionable
|
||||
Fixed so, after dragging a pane tab to a new location, the pane it was in before selects its most recent remaining tab instead of being blank
|
||||
|
||||
|
||||
- Card Zoomer -
|
||||
|
||||
@@ -262,8 +262,12 @@ public final class DragCell extends JPanel implements ILocalRepaint {
|
||||
/** Removes a document from the layout and tabs.
|
||||
* @param doc0   {@link forge.gui.framework.IVDoc} */
|
||||
public void removeDoc(final IVDoc<? extends ICDoc> doc0) {
|
||||
boolean wasSelected = (docSelected == doc0);
|
||||
allDocs.remove(doc0);
|
||||
pnlHead.remove(doc0.getTabLabel());
|
||||
if (wasSelected) { //after removing selected doc, select most recent doc if possible
|
||||
setSelected(null);
|
||||
}
|
||||
}
|
||||
|
||||
/** - Deselects previous selection, if there is one<br>
|
||||
|
||||
Reference in New Issue
Block a user