diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | activity/activity.info | 2 | ||||
-rw-r--r-- | constants.py | 2 | ||||
-rw-r--r-- | utils.py | 10 |
4 files changed, 10 insertions, 7 deletions
@@ -1,3 +1,6 @@ +54 +* #6679 fixed + 53 * #6417 fixed diff --git a/activity/activity.info b/activity/activity.info index 21bb2a5..5d1c63a 100755 --- a/activity/activity.info +++ b/activity/activity.info @@ -3,5 +3,5 @@ name = Record service_name = org.laptop.RecordActivity class = record.Record icon = activity-record -activity_version = 53 +activity_version = 54 show_launcher = yes
\ No newline at end of file diff --git a/constants.py b/constants.py index 7bb2eb5..64fbc4f 100644 --- a/constants.py +++ b/constants.py @@ -17,7 +17,7 @@ import pangocairo class Constants: - VERSION = 53 + VERSION = 54 SERVICE = "org.laptop.Record" IFACE = SERVICE @@ -47,12 +47,12 @@ def loadSvg( data, stroke, fill ): def getUniqueFilepath( path, i ): pathOb = os.path.abspath( path ) - if (os.path.exists(pathOb)): - i = i+1 - newPath = os.path.join( os.path.dirname(pathOb), str( str(i) + os.path.basename(pathOb) ) ) - return getUniqueFilepath( str(newPath), i ) + newPath = os.path.join( os.path.dirname(pathOb), str( str(i) + os.path.basename(pathOb) ) ) + if (os.path.exists(newPath)): + i = i + 1 + return getUniqueFilepath( pathOb, i ) else: - return os.path.abspath( path ) + return os.path.abspath( newPath ) def md5File( filepath ): |