Use a less invasive method for grabbing user attention
This commit is contained in:
1 parent
cd4eeeeab2
commit
eb1dc1356b
1 file changed
+1
-1
@@ -2245,7 +2245,7 @@ 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_set()
|
||||||
if sound:
|
if sound:
|
||||||
self._root.bell()
|
self._root.bell()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user