Skip to content

Commit 1b6cf34

Browse files
authored
Only use X -> Y format if min/max are different
1 parent c3672fa commit 1b6cf34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProperTree.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ class ProperTree:
521521
int_type = self.settings.get("display_int_as",self.allowed_int[0])
522522
self.int_type_string.set(int_type if int_type in self.allowed_int else self.allowed_int[0])
523523
self.snapshot_menu["menu"].delete(0,"end")
524-
snapshot_versions = ["{} -> {}".format(x["min_version"],x.get("max_version","Current")) for x in self.snapshot_data if "min_version" in x and len(x["min_version"])]
524+
snapshot_versions = ["{} -> {}".format(x["min_version"],x.get("max_version","Current")) if x["min_version"]!=x.get("max_version","Current") else x["min_version"] for x in self.snapshot_data if "min_version" in x and len(x["min_version"])]
525525
snapshot_choices = ["Latest"] + sorted(snapshot_versions,reverse=True)
526526
for choice in snapshot_choices:
527527
self.snapshot_menu["menu"].add_command(label=choice,command=tk._setit(self.snapshot_string,choice,self.change_snapshot_version))

0 commit comments

Comments
 (0)