Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue with wrong path being copied to the clipboard if the cust…

…om screenshot save directory was set
  • Loading branch information...
commit d861db65a820ab43d353feee236633fb233b651c 1 parent cf4d21b
@Kami authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 settings.py
View
4 settings.py
@@ -66,10 +66,12 @@ def saveSettings(settingsNew):
# Only path relative to Dropbox public directory is allowed
if settingsNew.has_key('screenshot_save_directory'):
saveDirectory = settingsNew['screenshot_save_directory']
- saveDirectory = saveDirectory[len(screengrab.get_public_folder_path()) + 1:] if saveDirectory.find(screengrab.get_public_folder_path()) != -1 and len(saveDirectory) > len(screengrab.get_public_folder_path()) else None
+ saveDirectory = saveDirectory[len(screengrab.get_public_folder_path()) + 1:] if (saveDirectory.find(screengrab.get_public_folder_path()) != -1 and len(saveDirectory) > len(screengrab.get_public_folder_path())) else None
if not saveDirectory:
config.Write('screenshot_save_directory', '')
+ else:
+ config.Write('screenshot_save_directory', saveDirectory)
def getAutoGrabIntervalValueInMs(interval):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.