mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
AppWindow.getandsend: Only blank status text when we play the bad sound
AppWindow.getandsend() is set on a timer for all of StartUp, Location and Docked. This means it can trigger up to three times for a login when docked. Subsequent calls would hit the cooldown timer and blank the status text blindly, hiding the 'Last Updated at' text. To be honest I'm not sure it even needs blanking *then*.
This commit is contained in:
parent
88a3f6d73a
commit
27961c1513
@ -753,8 +753,8 @@ class AppWindow(object):
|
|||||||
|
|
||||||
if not retrying:
|
if not retrying:
|
||||||
if time() < self.holdofftime: # Was invoked by key while in cooldown
|
if time() < self.holdofftime: # Was invoked by key while in cooldown
|
||||||
self.status['text'] = ''
|
|
||||||
if play_sound and (self.holdofftime - time()) < companion.holdoff * 0.75:
|
if play_sound and (self.holdofftime - time()) < companion.holdoff * 0.75:
|
||||||
|
self.status['text'] = ''
|
||||||
hotkeymgr.play_bad() # Don't play sound in first few seconds to prevent repeats
|
hotkeymgr.play_bad() # Don't play sound in first few seconds to prevent repeats
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user