mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-11-03 20:55:47 +01:00 
			
		
		
		
	Update tools.py
This commit is contained in:
		@@ -663,7 +663,11 @@ class MenagerDevices(Screen):
 | 
				
			|||||||
                self.session.open(ManagerDevice)
 | 
					                self.session.open(ManagerDevice)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
            False
 | 
					            self.myClose(_('Sorry, the operation is not possible from Flash or not supported.'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def myClose(self, message):
 | 
				
			||||||
 | 
					            self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
 | 
				
			||||||
 | 
					            self.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SetDiskLabel(Screen):
 | 
					class SetDiskLabel(Screen):
 | 
				
			||||||
    __module__ = __name__
 | 
					    __module__ = __name__
 | 
				
			||||||
@@ -689,7 +693,11 @@ class SetDiskLabel(Screen):
 | 
				
			|||||||
                    from Plugins.Extensions.NeoBoot.files.tools import DiskLabelSet
 | 
					                    from Plugins.Extensions.NeoBoot.files.tools import DiskLabelSet
 | 
				
			||||||
                    self.session.open(DiskLabelSet)
 | 
					                    self.session.open(DiskLabelSet)
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
            False         
 | 
					            self.myClose(_('Sorry, the operation is not possible from Flash or not supported.'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def myClose(self, message):
 | 
				
			||||||
 | 
					            self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
 | 
				
			||||||
 | 
					            self.close()        
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class MBDeleUpload(Screen):
 | 
					class MBDeleUpload(Screen):
 | 
				
			||||||
    __module__ = __name__
 | 
					    __module__ = __name__
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user