Fix coding style

This commit is contained in:
Hylke Bons 2013-06-26 10:11:03 +01:00
parent e1b24b7ee2
commit f858572ee1
2 changed files with 7 additions and 11 deletions

View file

@ -172,7 +172,7 @@ namespace SparkleLib.Git {
} }
} }
} catch (Exception e) { } catch (Exception) {
IsActive = false; IsActive = false;
return false; return false;
} }

View file

@ -812,24 +812,20 @@ namespace SparkleShare {
} }
} else { } else {
var plugin = (SparklePlugin)Items [row_index]; SparklePlugin plugin = (SparklePlugin) Items [row_index];
var path = plugin.ImagePath; string path = plugin.ImagePath;
if (backing_scale_factor >= 2) { if (backing_scale_factor >= 2) {
var hi_path = String.Format ("{0}@{1}x{2}", string hi_path = String.Format ("{0}@{1}x{2}",
Path.Combine (Path.GetDirectoryName (path), Path.GetFileNameWithoutExtension (path)), Path.Combine (Path.GetDirectoryName (path), Path.GetFileNameWithoutExtension (path)),
backing_scale_factor, backing_scale_factor, Path.GetExtension (path)
Path.GetExtension (path)
); );
if (File.Exists (hi_path)) { if (File.Exists (hi_path))
path = hi_path; path = hi_path;
}
} }
return new NSImage (path) { return new NSImage (path) { Size = new SizeF (24, 24) };
Size = new SizeF (24, 24)
};
} }
} }
} }