mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Reload from file when loading a visual deck to ensure latest changes propagate to the decklist.
This commit is contained in:
parent
3aa8e91b20
commit
5cdb8e3f94
1 changed files with 1 additions and 0 deletions
|
|
@ -181,6 +181,7 @@ void DeckViewContainer::refreshShortcuts()
|
||||||
void DeckViewContainer::loadVisualDeck(QMouseEvent *event, DeckPreviewWidget *instance)
|
void DeckViewContainer::loadVisualDeck(QMouseEvent *event, DeckPreviewWidget *instance)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
instance->deckLoader->loadFromFile(instance->filePath, DeckLoader::CockatriceFormat, false);
|
||||||
QString deckString = instance->deckLoader->writeToString_Native();
|
QString deckString = instance->deckLoader->writeToString_Native();
|
||||||
|
|
||||||
if (deckString.length() > MAX_FILE_LENGTH) {
|
if (deckString.length() > MAX_FILE_LENGTH) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue