core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile

This commit is contained in:
souliane 2014-03-03 09:59:10 +01:00
commit d158589881

View file

@ -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):