[banshee] Tidy



commit bc674edb962db784c517765a3d888cb68a187d74
Author: Alexander Kojevnikov <alexk gnome org>
Date:   Fri Jun 29 10:40:56 2012 -0400

    Tidy

 .../Banshee.Library/LibrarySource.cs               |   18 ++++++++++--------
 .../Banshee.Metadata/SaveTrackMetadataJob.cs       |    3 +--
 2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs b/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
index d8f6b9b..7a4a0fc 100644
--- a/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
+++ b/src/Core/Banshee.Services/Banshee.Library/LibrarySource.cs
@@ -64,7 +64,7 @@ namespace Banshee.Library
             IsLocal = true;
             base_dir_schema = CreateSchema<string> ("library-location", null, "The base directory under which files for this library are stored", null);
             copy_on_import = CreateSchema<bool> ("copy-on-import", false, "Copy files on import", "Copy and rename files to library directory when importing");
-            move_files = CreateSchema<bool>("move-on-info-save", false, "Move music on info save", "Move music within banshee music library directory when saving track info");
+            move_files = CreateSchema<bool>("move-on-info-save", false, "Move files on info save", "Move files within the library directory when saving track info");
 
             AfterInitialized ();
 
@@ -73,18 +73,20 @@ namespace Banshee.Library
             library_section.Add (base_dir_schema);
 
             if (this.HasCopyOnImport || this.HasMoveFiles) {
-                var file_system = PreferencesPage.FindOrAdd (new Section ("file-system", Catalog.GetString ("File Organization"), 5));
+                var file_system = PreferencesPage.FindOrAdd (
+                    new Section ("file-system", Catalog.GetString ("File Organization"), 5));
 
                 if (this.HasCopyOnImport) {
-                    file_system.Add ( new SchemaPreference<bool> (copy_on_import, Catalog.GetString ("Co_py files to media folder when importing")));
+                    file_system.Add (new SchemaPreference<bool> (
+                        copy_on_import, Catalog.GetString ("Co_py files to media folder when importing")));
                 }
 
                 if (this.HasMoveFiles) {
-                    file_system.Add ( new SchemaPreference<bool> (
-                                        move_files,
-                                        Catalog.GetString ("_Update file and folder names"),
-                                        Catalog.GetString ("Rename files and folders according to media metadata")
-                                ));
+                    file_system.Add (new SchemaPreference<bool> (
+                        move_files,
+                        Catalog.GetString ("_Update file and folder names"),
+                        Catalog.GetString ("Rename files and folders according to media metadata")
+                    ));
                 }
             }
         }
diff --git a/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs b/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
index 44c6e97..dfeb3a6 100644
--- a/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
+++ b/src/Core/Banshee.Services/Banshee.Metadata/SaveTrackMetadataJob.cs
@@ -98,8 +98,7 @@ namespace Banshee.Metadata
 
                 // Rename tracks only from Libraries that support it.
                 var track_source = track.PrimarySource as LibrarySource;
-                if (null != track_source && track_source.HasMoveFiles &&
-                    track_source.MoveFiles) {
+                if (null != track_source && track_source.HasMoveFiles && track_source.MoveFiles) {
                     Hyena.Log.DebugFormat ("Updating file name for {0}", track);
                     renamed = RenameFile (track);
                     if (renamed && !wrote) {



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