[polari/wip/dmoelgaard/initial-setup] initSetup: Remove accounts on back
- From: Bastian Ilsø Hougaard <bastianilso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/dmoelgaard/initial-setup] initSetup: Remove accounts on back
- Date: Wed, 2 Aug 2017 00:54:25 +0000 (UTC)
commit 0d964dd2f5b8764f9de347297d958e347c2c857f
Author: Bastian Ilsø <bastianilso gnome org>
Date: Wed Aug 2 01:48:00 2017 +0100
initSetup: Remove accounts on back
src/initSetup.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/initSetup.js b/src/initSetup.js
index 6cfadc0..93b2614 100644
--- a/src/initSetup.js
+++ b/src/initSetup.js
@@ -43,7 +43,7 @@ var InitSetup = new Lang.Class({
_setupConnectionPage: function() {
this._nextButton.connect('clicked', () => {
- this._setPage(SetupPage.ROOM);
+ this._connectionPageList.activateSelected();
});
this._cancelButton.connect('clicked', () => {
@@ -75,6 +75,12 @@ var InitSetup = new Lang.Class({
_setupRoomPage: function() {
this._backButton.connect('clicked', () => {
this._setPage(SetupPage.CONNECTION);
+
+ if (this._currentAccount)
+ this._currentAccount.remove_async((a, res) => {
+ a.remove_finish(res);
+ });
+ this._currentAccount = null;
});
this._doneButton.connect('clicked', () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]