mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 09:35:08 -07:00
[VDS] Reload deck on hover if file has been modified since last load (#6507)
* add reload to DeckLoader * [VDS] Reload deck on hover if file has been modified since last load * fix version incompatibility
This commit is contained in:
parent
d9b9c79112
commit
39ddaa0c35
7 changed files with 124 additions and 20 deletions
|
|
@ -53,6 +53,16 @@ void ColorIdentityWidget::populateManaSymbolWidgets()
|
|||
}
|
||||
}
|
||||
|
||||
void ColorIdentityWidget::setColorIdentity(const QString &_colorIdentity)
|
||||
{
|
||||
if (colorIdentity == _colorIdentity) {
|
||||
return;
|
||||
}
|
||||
|
||||
colorIdentity = _colorIdentity;
|
||||
populateManaSymbolWidgets();
|
||||
}
|
||||
|
||||
void ColorIdentityWidget::toggleUnusedVisibility()
|
||||
{
|
||||
populateManaSymbolWidgets();
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ public:
|
|||
static QStringList parseColorIdentity(const QString &manaString);
|
||||
|
||||
public slots:
|
||||
void setColorIdentity(const QString &_colorIdentity);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void toggleUnusedVisibility();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue