Skip to content

Commit

Permalink
Allow Hyphen character in custom labels
Browse files Browse the repository at this point in the history
Allowing hyphen (dash, minus sign, ASCII 45, '-') in custom labels
  • Loading branch information
alimirjamali committed Jun 23, 2024
1 parent 9ff7f89 commit 943c383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def data(self, index, role):
if col_name == "Type":
return vm.klass
if col_name == "Label":
vmtype, vmcolor = vm.icon.split("-")
vmtype, vmcolor = vm.icon.split("-", 1)
try:
processed_color = str(vm.label.index)
except ValueError:
Expand Down

0 comments on commit 943c383

Please sign in to comment.