From 27961c1513fe399a0ac64e93e5c2361fc7b12816 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 4 Apr 2021 11:46:46 +0100 Subject: [PATCH] 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*. --- EDMarketConnector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 39d6fc0e..e3312ed1 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -753,8 +753,8 @@ class AppWindow(object): if not retrying: 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: + self.status['text'] = '' hotkeymgr.play_bad() # Don't play sound in first few seconds to prevent repeats return