mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
GUI: improved feedback needed sound notifications (plays only for inactive game or app, see #6853);
This commit is contained in:
parent
c343767e8e
commit
610baac6ab
6 changed files with 828 additions and 804 deletions
|
|
@ -1639,6 +1639,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
whatsNewDialog.checkUpdatesAndShow(forceToShowPage);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isGameFrameActive(UUID gameId) {
|
||||
if (activeFrame != null && activeFrame instanceof GamePane) {
|
||||
return ((GamePane) activeFrame).getGameId().equals(gameId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
class MagePaneMenuItem extends JCheckBoxMenuItem {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue