when viewing, there is no path and not needed for viewing anyway
This commit is contained in:
@@ -278,13 +278,15 @@ class States(PA):
|
|||||||
last_used=datetime.now(pytz.utc)
|
last_used=datetime.now(pytz.utc)
|
||||||
|
|
||||||
# set the prefix based on path
|
# set the prefix based on path
|
||||||
|
path=None
|
||||||
if self.path_type == 'Storage':
|
if self.path_type == 'Storage':
|
||||||
path = SettingsSPath()
|
path = SettingsSPath()
|
||||||
elif self.path_type == 'Import':
|
elif self.path_type == 'Import':
|
||||||
path = SettingsIPath()
|
path = SettingsIPath()
|
||||||
elif self.path_type == 'Bin':
|
elif self.path_type == 'Bin':
|
||||||
path = SettingsRBPath()
|
path = SettingsRBPath()
|
||||||
self.prefix = SymlinkName(self.path_type,path,path+'/')
|
if path:
|
||||||
|
self.prefix = SymlinkName(self.path_type,path,path+'/')
|
||||||
|
|
||||||
# now save pref
|
# now save pref
|
||||||
if not pref:
|
if not pref:
|
||||||
|
|||||||
Reference in New Issue
Block a user