Actually handle the sound parameter
This commit is contained in:
1 parent
caecef4ecd
commit
f125bf058e
1 file changed
+2
-1
@@ -2111,7 +2111,8 @@ class GUIManager:
|
|||||||
def grab_attention(self, *, sound: bool = True):
|
def grab_attention(self, *, sound: bool = True):
|
||||||
self.tray.restore()
|
self.tray.restore()
|
||||||
self._root.focus_force()
|
self._root.focus_force()
|
||||||
self._root.bell()
|
if sound:
|
||||||
|
self._root.bell()
|
||||||
|
|
||||||
def set_games(self, games: abc.Iterable[Game]) -> None:
|
def set_games(self, games: abc.Iterable[Game]) -> None:
|
||||||
self.settings.set_games(games)
|
self.settings.set_games(games)
|
||||||
|
|||||||
Reference in new issue
Block a user