Skip to content

Commit

Permalink
Merge pull request vhanla#30 from rexdf/master
Browse files Browse the repository at this point in the history
  • Loading branch information
vhanla committed May 16, 2018
2 parents 2b7e2cd + 11cdbf8 commit 4facb79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SublimeTrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ def sublime_opacity(opacity):
ShellExecute(LHDesktop,"open", exe_file,parametro,None,SW_HIDE)
if opacity is not None:
SetLayeredWindowAttributes(LHWindow,0,opacity, LWA_ALPHA)
stt_settings.set("opacity", opacity)
persist_settings()
cur_opacity = stt_settings.get("opacity", None)
if cur_opacity != opacity:
stt_settings.set("opacity", opacity)
persist_settings()
break
except ValueError:
print("Error! ")
Expand Down

0 comments on commit 4facb79

Please sign in to comment.