Only update speca weather if it not already updating. Also remove QPixmaps if already displayed

This commit is contained in:
alessandro90
2019-04-07 13:12:13 +02:00
parent 3d4961825d
commit 3742e5372e
3 changed files with 19 additions and 5 deletions

View File

@@ -463,8 +463,9 @@ class Artemis(QMainWindow, Ui_MainWindow):
@pyqtSlot()
def start_update_space_weather(self):
self.update_now_bar.setMaximum(self.update_now_bar.minimum())
self.space_weather_data.update()
if not self.space_weather_data.is_updating:
self.update_now_bar.setMaximum(self.update_now_bar.minimum())
self.space_weather_data.update()
@pyqtSlot(bool)
def update_space_weather(self, status_ok):