core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
This commit is contained in:
parent
528ceb5f8b
commit
d158589881
1 changed files with 47 additions and 82 deletions
|
|
@ -92,8 +92,7 @@ class ProfileManager(urwid.WidgetWrap):
|
|||
def deleteProfile(self, button):
|
||||
profile_name = self.list_profile.getSelectedValue()
|
||||
if profile_name:
|
||||
self.host.bridge.deleteProfile(profile_name)
|
||||
self.__refillProfiles()
|
||||
self.host.bridge.asyncDeleteProfile(profile_name, callback=self.__refillProfiles)
|
||||
self.host.removePopUp()
|
||||
|
||||
def onNewProfile(self, e):
|
||||
|
|
|
|||
Loading…
Reference in a new issue