Skip to content

Commit

Permalink
add tray message on match start if window inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohedron committed Sep 30, 2023
1 parent 4d53ee0 commit 2ec532b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Mage.Client/src/main/java/mage/client/game/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import mage.client.components.MageComponents;
import mage.client.components.ext.dlg.DialogManager;
import mage.client.components.layout.RelativeLayout;
import mage.client.components.tray.MageTray;
import mage.client.dialog.*;
import mage.client.dialog.CardInfoWindowDialog.ShowType;
import mage.client.game.FeedbackPanel.FeedbackMode;
Expand Down Expand Up @@ -501,6 +502,10 @@ public synchronized void showGame(UUID gameId, UUID playerId, GamePane gamePane)
} else {
// play start sound
AudioManager.playYourGameStarted();
if (!AppUtil.isAppActive()) {
MageTray.instance.displayMessage("Your match has started!");
MageTray.instance.blink();
}
}
}

Expand Down

0 comments on commit 2ec532b

Please sign in to comment.