Update plugin.py

This commit is contained in:
gutosie
2021-12-15 10:44:34 +02:00
committed by GitHub
parent 9d726af9c2
commit cfc756e187

View File

@@ -1287,7 +1287,7 @@ class NeoBootImageChoose(Screen):
self['label10'].setText(strview) self['label10'].setText(strview)
def mytools(self): def mytools(self):
if getCheckActivateVip() == getBoxMacAddres(): if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'):
try: try:
from Plugins.Extensions.NeoBoot.files.tools import MBTools from Plugins.Extensions.NeoBoot.files.tools import MBTools
self.session.open(MBTools) self.session.open(MBTools)
@@ -1385,7 +1385,7 @@ class NeoBootImageChoose(Screen):
self.session.open(MessageBox, _('Removing canceled!'), MessageBox.TYPE_INFO) self.session.open(MessageBox, _('Removing canceled!'), MessageBox.TYPE_INFO)
def ImageInstall(self): def ImageInstall(self):
if getCheckActivateVip() == getBoxMacAddres(): if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'):
self.ImageInstallTestOK() self.ImageInstallTestOK()
elif not fileExists('/.multinfo'): elif not fileExists('/.multinfo'):
if ('1234%s' % getTestToTest()) != getAccessN(): if ('1234%s' % getTestToTest()) != getAccessN():