From 2188399b5f009474c590bc9deed3d3c1f39e5e0e Mon Sep 17 00:00:00 2001 From: bleakgrey Date: Sat, 28 Apr 2018 20:58:30 +0300 Subject: [PATCH] Unbreak things --- src/AccountManager.vala | 1 + src/Views/AddAccountView.vala | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AccountManager.vala b/src/AccountManager.vala index 9d362f5..57e8829 100644 --- a/src/AccountManager.vala +++ b/src/AccountManager.vala @@ -105,6 +105,7 @@ public class Tootle.AccountManager : Object{ public void logout (){ current = null; + Tootle.settings.access_token = "null"; switched (null); } diff --git a/src/Views/AddAccountView.vala b/src/Views/AddAccountView.vala index e98b6f1..d3494bf 100644 --- a/src/Views/AddAccountView.vala +++ b/src/Views/AddAccountView.vala @@ -87,6 +87,7 @@ public class Tootle.AddAccountView : Tootle.AbstractView { construct { stack = new Stack (); stack.valign = Gtk.Align.CENTER; + stack.vexpand = true; stack.transition_type = StackTransitionType.SLIDE_LEFT_RIGHT; grid_instance = new GridInstance (); @@ -104,7 +105,7 @@ public class Tootle.AddAccountView : Tootle.AbstractView { stack.add_named (grid_instance, "instance"); stack.add_named (grid_code, "code"); - add (stack); + view.add (stack); show_all (); }