This commit is contained in:
faroukbmiled 2023-08-01 16:07:44 +01:00
parent 2ba81f72d6
commit bb98a067aa
2 changed files with 4 additions and 0 deletions

View File

@ -308,6 +308,7 @@ class WorkshopDownloaderApp(QWidget):
self.edit_workshop_id = QLineEdit() self.edit_workshop_id = QLineEdit()
self.edit_workshop_id.setPlaceholderText("Workshop ID => Press info to see map/mod info") self.edit_workshop_id.setPlaceholderText("Workshop ID => Press info to see map/mod info")
self.edit_workshop_id.textChanged.connect(self.reset_file_size)
info_workshop_layout.addWidget(self.edit_workshop_id, 3) info_workshop_layout.addWidget(self.edit_workshop_id, 3)
layout.addLayout(info_workshop_layout) layout.addLayout(info_workshop_layout)
@ -479,6 +480,9 @@ class WorkshopDownloaderApp(QWidget):
with open(CONFIG_FILE_PATH, "w") as config_file: with open(CONFIG_FILE_PATH, "w") as config_file:
config.write(config_file) config.write(config_file)
def reset_file_size(self):
self.label_file_size.setText(f"File size: 0KB")
def show_map_info(self): def show_map_info(self):
workshop_id = self.edit_workshop_id.text() workshop_id = self.edit_workshop_id.text()

BIN
dist/BOIIIWD.exe vendored

Binary file not shown.