when viewing, there is no path and not needed for viewing anyway

This commit is contained in:
2025-09-26 19:30:29 +10:00
parent d2db7f6184
commit a28f016b8a

View File

@@ -278,13 +278,15 @@ class States(PA):
last_used=datetime.now(pytz.utc)
# set the prefix based on path
path=None
if self.path_type == 'Storage':
path = SettingsSPath()
elif self.path_type == 'Import':
path = SettingsIPath()
elif self.path_type == 'Bin':
path = SettingsRBPath()
self.prefix = SymlinkName(self.path_type,path,path+'/')
if path:
self.prefix = SymlinkName(self.path_type,path,path+'/')
# now save pref
if not pref: