diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2013-01-24 00:39:51 +0200 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2013-01-29 16:24:08 +0200 |
commit | 8796e6f0c2d0a5e63c8961be439547708a46dd40 (patch) | |
tree | 43eeb4b64c8b1753d0371c31741f34f34d6df9a8 | |
parent | ad7dd9858b7fc0a9f141ddcea0fce50dee47bc29 (diff) |
No need to launch wizard on first time anymore
Showing wizard automatically doesn't make sense anymore when we show the
initial greeting message in the main view.
https://bugzilla.gnome.org/show_bug.cgi?id=686936
-rw-r--r-- | src/app.vala | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/app.vala b/src/app.vala index 6518ba8..73dddf6 100644 --- a/src/app.vala +++ b/src/app.vala @@ -72,7 +72,7 @@ private class Boxes.App: Boxes.UI { public CollectionFilter filter; private bool is_ready; - public signal void ready (bool first_time); + public signal void ready (); public signal void item_selected (CollectionItem item); private Boxes.Application application; public CollectionView view; @@ -170,20 +170,19 @@ private class Boxes.App: Boxes.UI { setup_sources.begin ((obj, result) => { setup_sources.end (result); is_ready = true; - var no_items = collection.items.length == 0; - ready (no_items); + ready (); }); check_cpu_vt_capability.begin (); check_module_kvm_loaded.begin (); } - public delegate void CallReadyFunc (bool first_time); + public delegate void CallReadyFunc (); public void call_when_ready (CallReadyFunc func) { if (is_ready) - func (false); - ready.connect ((first_time) => { - func (first_time); + func (); + ready.connect (() => { + func (); }); } @@ -261,11 +260,6 @@ private class Boxes.App: Boxes.UI { open (arg); }); } - } else { - call_when_ready ((first_time) => { - if (first_time) - app.ui_state = Boxes.UIState.WIZARD; - }); } |