Skip to content

Commit

Permalink
Merge pull request #98 from pwnbit/pwnbit-patch-1
Browse files Browse the repository at this point in the history
Update: Return value removes when cancel.
  • Loading branch information
weslly authored Jan 17, 2019
2 parents f0aec8e + be7a345 commit 8af3bd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sublimecp.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ def pick(self, window, starting_color=None):
):
color = color.decode('utf-8')

# New win_Colorpicker.exe has return hex color code and alpha code. (ex: #FF0000FF = Red color + transparency 100%)
color = color.replace('#','')[:6]
# New win_Colorpicker.exe has return hex color code and alpha code. (ex: #FF0000FF = Red color + transparency 100%)
# Only applied to 'win_colorpicker.exe'.
if color == "CANCEL": # When canceled.
color = ""
else:
color = color.replace('#','')[:6]

return color

Expand Down

0 comments on commit 8af3bd4

Please sign in to comment.