mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 18:43:55 -07:00
style: change format code
This commit is contained in:
parent
9080a443ed
commit
b7b7a385ea
2 changed files with 3 additions and 3 deletions
|
|
@ -49,13 +49,13 @@ PlayerMenu::PlayerMenu(Player *_player) : player(_player)
|
||||||
|
|
||||||
connect(&SettingsCache::instance().shortcuts(), &ShortcutsSettings::shortCutChanged, this,
|
connect(&SettingsCache::instance().shortcuts(), &ShortcutsSettings::shortCutChanged, this,
|
||||||
&PlayerMenu::refreshShortcuts);
|
&PlayerMenu::refreshShortcuts);
|
||||||
|
|
||||||
// Monitor game state to re-evaluate shortcuts when game starts/stops
|
// Monitor game state to re-evaluate shortcuts when game starts/stops
|
||||||
if (player->getGame() && player->getGame()->getGameMetaInfo()) {
|
if (player->getGame() && player->getGame()->getGameMetaInfo()) {
|
||||||
connect(player->getGame()->getGameMetaInfo(), &GameMetaInfo::startedChanged, this,
|
connect(player->getGame()->getGameMetaInfo(), &GameMetaInfo::startedChanged, this,
|
||||||
&PlayerMenu::onGameStartedChanged);
|
&PlayerMenu::onGameStartedChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshShortcuts();
|
refreshShortcuts();
|
||||||
|
|
||||||
retranslateUi();
|
retranslateUi();
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delegates to all managedComponents, plus counters separately.
|
/// Delegates to all managedComponents, plus counters separately.
|
||||||
///Stop full activation until game has started; only roll-die shortcut is active in lobby.
|
/// Stop full activation until game has started; only roll-die shortcut is active in lobby.
|
||||||
void setShortcutsActive();
|
void setShortcutsActive();
|
||||||
/// Delegates to all managedComponents, plus counters separately.
|
/// Delegates to all managedComponents, plus counters separately.
|
||||||
void setShortcutsInactive();
|
void setShortcutsInactive();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue