Skip to content

Commit 9a29701

Browse files
nk3: Only show extra information if set
Fixes: #315
1 parent 7cdda8e commit 9a29701

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nitrokeyapp/update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def confirm_update_same_version(self, version: Version) -> None:
150150
logger.info("OK clicked (confirm same version)")
151151

152152
def confirm_extra_information(self, txt: List[str]) -> None:
153+
if len(txt) == 0:
154+
return
155+
153156
res = self.run_confirm_dialog("Confirm extra information", " ".join(txt))
154157
if not res:
155158
logger.info("Cancel clicked (confirm extra info)")

0 commit comments

Comments
 (0)