mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: update button label conditionally
Some checks are pending
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
Some checks are pending
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
This commit is contained in:
parent
fa8792ba69
commit
5c85c746f1
@ -307,12 +307,12 @@ class PreConnectionAssistant(Gtk.Box):
|
||||
self.mod_count.set_text(msg)
|
||||
|
||||
if prereqs.required_space != 0:
|
||||
self.ok.set_label(preconnect.connect)
|
||||
|
||||
pretty = number(prereqs.required_space)
|
||||
suffix = f" Need to download {pretty} MiB of mod updates."
|
||||
prefix = preconnect.total_mods
|
||||
self.mod_count.set_text(f"{prefix}{str(total_mods)}.{suffix}")
|
||||
else:
|
||||
self.ok.set_label(preconnect.connect)
|
||||
|
||||
if prereqs.is_last_server:
|
||||
self.connect_last.show()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user