From a03b45c7f67cd06c0c915200bb39940ca482bcda Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 27 Nov 2015 16:58:16 +0100 Subject: [PATCH] primitivus (profile manager): session is started for newly create profiles --- frontends/src/primitivus/profile_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/src/primitivus/profile_manager.py b/frontends/src/primitivus/profile_manager.py index ec251e09..26aac69e 100644 --- a/frontends/src/primitivus/profile_manager.py +++ b/frontends/src/primitivus/profile_manager.py @@ -91,6 +91,10 @@ class ProfileManager(QuickProfileManager, urwid.WidgetWrap): self.host.bridge.asyncCreateProfile(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure) def newProfileCreated(self, profile): + # new profile will be selected, and a selected profile assume the session is started + self.host.bridge.profileStartSession('', profile, callback=lambda dummy: self.newProfileSessionStarted(profile), errback=self.profileCreationFailure) + + def newProfileSessionStarted(self, profile): self.host.removePopUp() self.refillProfiles() self.list_profile.selectValue(profile)