mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -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()));
|
connect(sideboardLockButton, SIGNAL(stateChanged()), this, SLOT(updateSideboardLockButtonText()));
|
||||||
|
|
||||||
if (parentGame->getIsLocalGame()) {
|
if (parentGame->getIsLocalGame()) {
|
||||||
|
loadRemoteButton->setVisible(false);
|
||||||
loadRemoteButton->setEnabled(false);
|
loadRemoteButton->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
connect(loadRemoteButton, SIGNAL(clicked()), this, SLOT(loadRemoteDeck()));
|
connect(loadRemoteButton, SIGNAL(clicked()), this, SLOT(loadRemoteDeck()));
|
||||||
|
|
@ -126,7 +127,11 @@ void DeckViewContainer::switchToDeckSelectView()
|
||||||
deckViewLayout->update();
|
deckViewLayout->update();
|
||||||
|
|
||||||
setVisibility(loadLocalButton, true);
|
setVisibility(loadLocalButton, true);
|
||||||
setVisibility(loadRemoteButton, true);
|
if (parentGame->getIsLocalGame()) {
|
||||||
|
setVisibility(loadRemoteButton, false);
|
||||||
|
} else {
|
||||||
|
setVisibility(loadRemoteButton, true);
|
||||||
|
}
|
||||||
setVisibility(unloadDeckButton, false);
|
setVisibility(unloadDeckButton, false);
|
||||||
setVisibility(readyStartButton, false);
|
setVisibility(readyStartButton, false);
|
||||||
setVisibility(sideboardLockButton, false);
|
setVisibility(sideboardLockButton, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue