mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
Hide load from remote button in local games.
This commit is contained in:
parent
55b490ade0
commit
0b89c15384
1 changed files with 6 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ DeckViewContainer::DeckViewContainer(int _playerId, TabGame *parent)
|
|||
connect(sideboardLockButton, SIGNAL(stateChanged()), this, SLOT(updateSideboardLockButtonText()));
|
||||
|
||||
if (parentGame->getIsLocalGame()) {
|
||||
loadRemoteButton->setVisible(false);
|
||||
loadRemoteButton->setEnabled(false);
|
||||
} else {
|
||||
connect(loadRemoteButton, SIGNAL(clicked()), this, SLOT(loadRemoteDeck()));
|
||||
|
|
@ -126,7 +127,11 @@ void DeckViewContainer::switchToDeckSelectView()
|
|||
deckViewLayout->update();
|
||||
|
||||
setVisibility(loadLocalButton, true);
|
||||
setVisibility(loadRemoteButton, true);
|
||||
if (parentGame->getIsLocalGame()) {
|
||||
setVisibility(loadRemoteButton, false);
|
||||
} else {
|
||||
setVisibility(loadRemoteButton, true);
|
||||
}
|
||||
setVisibility(unloadDeckButton, false);
|
||||
setVisibility(readyStartButton, false);
|
||||
setVisibility(sideboardLockButton, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue