Fixed Bug that kept image shown after changing root

Renamed ArtNetManager.change_image() to ArtNetManager.refresh_shown_image()
Added a refresh of image and config when changing root.
dev
Peery 3 years ago
parent 6fab754612
commit ccf4e1feb5

@ -65,7 +65,7 @@ class ArtNetManager:
def run(self):
if len(self.all_images) > 0:
self.curr_image_index = 0
self.change_image()
self.refresh_shown_image()
self.window.show()
@ -314,7 +314,7 @@ class ArtNetManager:
else:
return None
def change_image(self):
def refresh_shown_image(self):
"""
Refresh the image display to show the most current data according to the selected image
:return:
@ -370,6 +370,9 @@ class ArtNetManager:
print("Changing root to", path)
self.config.data["file_root"] = path
self.config.update_config()
self.__file_reader = FileReader(self.config.data["file_root"])
self.update_all_images_list()
self.refresh_shown_image()
def get_db_connection_details(self) -> dict:
return self.config.data["db"]

Loading…
Cancel
Save