mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-08 23:06:02 +01:00
Update plugin.py
This commit is contained in:
@@ -203,6 +203,9 @@ class NeoBootInstallation(Screen):
|
|||||||
writefile.close()
|
writefile.close()
|
||||||
|
|
||||||
def SetDiskLabel(self):
|
def SetDiskLabel(self):
|
||||||
|
if fileExists('/usr/lib/python3.8') or fileExists('/usr/lib/python3.9'):
|
||||||
|
self.session.open(MessageBox, _('Skip this step and install NeoBoot.'), type=MessageBox.TYPE_ERROR)
|
||||||
|
|
||||||
if getCheckExt() != 'vfat' and getCheckExt() == 'ext3' or getCheckExt() == 'ext4' :
|
if getCheckExt() != 'vfat' and getCheckExt() == 'ext3' or getCheckExt() == 'ext4' :
|
||||||
try:
|
try:
|
||||||
from Plugins.Extensions.NeoBoot.files.devices import SetDiskLabel
|
from Plugins.Extensions.NeoBoot.files.devices import SetDiskLabel
|
||||||
@@ -355,6 +358,8 @@ class NeoBootInstallation(Screen):
|
|||||||
|
|
||||||
def devices(self):
|
def devices(self):
|
||||||
check = False
|
check = False
|
||||||
|
if fileExists('/usr/lib/python3.8') or fileExists('/usr/lib/python3.9'):
|
||||||
|
self.session.open(MessageBox, _('Skip this step and install NeoBoot.'), type=MessageBox.TYPE_ERROR)
|
||||||
if check == False:
|
if check == False:
|
||||||
message = _('After selecting OK start Mounting Manager, option Mount - green\n')
|
message = _('After selecting OK start Mounting Manager, option Mount - green\n')
|
||||||
message += _('Do you want to run the manager to mount the drives correctly ?\n')
|
message += _('Do you want to run the manager to mount the drives correctly ?\n')
|
||||||
@@ -868,7 +873,7 @@ class NeoBootImageChoose(Screen):
|
|||||||
False
|
False
|
||||||
|
|
||||||
def close_exit(self):
|
def close_exit(self):
|
||||||
if fileExists('/usr/lib/python3.9'):
|
if fileExists('/usr/lib/python3.9') or fileExists('/usr/lib/python3.8'):
|
||||||
self.close()
|
self.close()
|
||||||
else:
|
else:
|
||||||
self.close_exit2()
|
self.close_exit2()
|
||||||
|
|||||||
Reference in New Issue
Block a user