Fix up a few errors that sneaked in while updating vmenu code and a couple other things. Logs should be much nicer now.
This commit is contained in:
@ -84,6 +84,9 @@ class commandManager():
|
||||
fileName = fileName.split('/')[-1]
|
||||
if fileName.startswith('__'):
|
||||
continue
|
||||
# Skip base classes that shouldn't be loaded as commands
|
||||
if fileName.endswith('_base'):
|
||||
continue
|
||||
# Check if command already exists to prevent duplicate loading
|
||||
if fileName.upper() in self.env['commands'][section] and self.env['commands'][section][fileName.upper()] is not None:
|
||||
continue
|
||||
|
@ -174,7 +174,8 @@ class settingsManager():
|
||||
|
||||
def loadDriver(self, driverName, driverType):
|
||||
try:
|
||||
self.env['runtime'][driverType].shutdown(self.env)
|
||||
if self.env['runtime'][driverType] is not None:
|
||||
self.env['runtime'][driverType].shutdown(self.env)
|
||||
except Exception as e:
|
||||
self.env['runtime']['debug'].writeDebugOut('settingsManager loadDriver: Error shutting down driver: ' + str(e), debug.debugLevel.ERROR)
|
||||
try:
|
||||
|
@ -269,6 +269,9 @@ class vmenuManager():
|
||||
fileName = fileName.split('/')[-1]
|
||||
if fileName.startswith('__'):
|
||||
continue
|
||||
# Skip base classes that shouldn't be loaded as commands
|
||||
if fileName.endswith('_base'):
|
||||
continue
|
||||
command = self.env['runtime']['commandManager'].loadFile(root + '/' + f)
|
||||
tree.update({fileName + ' ' + _('Action'): command})
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user