private bool InitializeIdle() { if (customBackend != null) { Application.Backend = customBackend; } else { // Check to see if the user has a preference of which backend // to use. If so, use it, otherwise, pop open the preferences // dialog so they can choose one. string backendTypeString = Preferences.Get(Preferences.CurrentBackend); Logger.Debug("CurrentBackend specified in Preferences: {0}", backendTypeString); if (backendTypeString != null && availableBackends.ContainsKey(backendTypeString)) { Application.Backend = availableBackends [backendTypeString]; } } trayIcon = GtkTray.CreateTray(); if (backend == null) { // Pop open the preferences dialog so the user can choose a // backend service to use. Application.ShowPreferences(); } else if (!quietStart) { TaskWindow.ShowWindow(); } if (backend == null || !backend.Configured) { GLib.Timeout.Add(1000, new GLib.TimeoutHandler(RetryBackend)); } nativeApp.InitializeIdle(); return(false); }
protected override void OnInitializeIdle() { trayIcon = GtkTray.CreateTray (); if (Backend == null) { // Pop open the preferences dialog so the user can choose a // backend service to use. ShowPreferences (); } else if (!QuietStart) TaskWindow.ShowWindow (); if (Backend == null || !Backend.Configured) { GLib.Timeout.Add (1000, new GLib.TimeoutHandler (delegate { RetryBackend (); return Backend == null || !Backend.Configured; })); } base.OnInitializeIdle (); }
private bool InitializeIdle() { if (customBackend != null) { Application.Backend = customBackend; } else { // Check to see if the user has a preference of which backend // to use. If so, use it, otherwise, pop open the preferences // dialog so they can choose one. string backendTypeString = Preferences.Get (Preferences.CurrentBackend); Logger.Debug ("CurrentBackend specified in Preferences: {0}", backendTypeString); if (backendTypeString != null && availableBackends.ContainsKey (backendTypeString)) { Application.Backend = availableBackends [backendTypeString]; } } trayIcon = GtkTray.CreateTray (); if (backend == null) { // Pop open the preferences dialog so the user can choose a // backend service to use. Application.ShowPreferences (); } else if (!quietStart) { TaskWindow.ShowWindow (); } if (backend == null || !backend.Configured){ GLib.Timeout.Add(1000, new GLib.TimeoutHandler(RetryBackend)); } nativeApp.InitializeIdle (); return false; }