statusicon: use welcome text until done loading

This commit is contained in:
Hylke Bons 2012-03-23 03:47:37 +00:00
parent 8b02a628a9
commit 35735df164
3 changed files with 6 additions and 12 deletions

View file

@ -72,10 +72,8 @@ namespace SparkleShare {
this.status_icon.Pixbuf = this.animation_frames [0]; this.status_icon.Pixbuf = this.animation_frames [0];
#endif #endif
if (Controller.Folders.Length == 0) this.state_text = _("Welcome to SparkleShare!");
this.state_text = _("Welcome to SparkleShare!");
else
this.state_text = _("Files up to date") + Controller.FolderSize;
CreateMenu (); CreateMenu ();

View file

@ -82,10 +82,8 @@ namespace SparkleShare {
StatusItem = NSStatusBar.SystemStatusBar.CreateStatusItem (28); StatusItem = NSStatusBar.SystemStatusBar.CreateStatusItem (28);
StatusItem.HighlightMode = true; StatusItem.HighlightMode = true;
if (Controller.Folders.Length == 0) StateText = _("Welcome to SparkleShare!");
StateText = _("Welcome to SparkleShare!");
else
StateText = _("Files up to date") + Controller.FolderSize;
CreateMenu (); CreateMenu ();

View file

@ -59,10 +59,8 @@ namespace SparkleShare {
this.notify_icon.Icon = AnimationFrames [0]; this.notify_icon.Icon = AnimationFrames [0];
this.notify_icon.HeaderText = "SparkleShare"; this.notify_icon.HeaderText = "SparkleShare";
if (Controller.Folders.Length == 0) StateText = _("Welcome to SparkleShare!");
StateText = _("Welcome to SparkleShare!");
else
this.notify_icon.Text = StateText = _("Files up to date") + Controller.FolderSize;
CreateMenu (); CreateMenu ();