banshee r3307 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Library



Author: scottp
Date: Sat Feb 23 03:54:32 2008
New Revision: 3307
URL: http://svn.gnome.org/viewvc/banshee?rev=3307&view=rev

Log:
* src/Core/Banshee.Services/Banshee.Library/ThreadPoolImportSource.cs:
  Minor fix for fetching the UserJob's Title.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.Library/ThreadPoolImportSource.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Library/ThreadPoolImportSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Library/ThreadPoolImportSource.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Library/ThreadPoolImportSource.cs	Sat Feb 23 03:54:32 2008
@@ -100,12 +100,19 @@
             }
         }
         
+        private string user_job_title;
         protected virtual string UserJobTitle {
-            get { return String.Format (Catalog.GetString ("Importing Songs from {0}"), Name); }
+            get {
+                if (user_job_title == null) {
+                    user_job_title = String.Format (Catalog.GetString ("Importing Songs from {0}"), Name);
+                }
+                return user_job_title;
+            }
         }
         
+        private string cancel_message = Catalog.GetString ("The import process is currently running. Would you like to stop it?");
         protected virtual string CancelMessage {
-            get { return Catalog.GetString ("The import process is currently running. Would you like to stop it?"); }
+            get { return cancel_message; }
         }
     
         protected virtual bool CanCancel {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]