Fix coding style
This commit is contained in:
parent
3b8f1fe6c9
commit
505cfa96a4
|
@ -172,7 +172,7 @@ namespace SparkleLib.Git {
|
|||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
} catch (Exception) {
|
||||
IsActive = false;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -812,24 +812,20 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
} else {
|
||||
var plugin = (SparklePlugin)Items [row_index];
|
||||
var path = plugin.ImagePath;
|
||||
SparklePlugin plugin = (SparklePlugin) Items [row_index];
|
||||
string path = plugin.ImagePath;
|
||||
|
||||
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)),
|
||||
backing_scale_factor,
|
||||
Path.GetExtension (path)
|
||||
backing_scale_factor, Path.GetExtension (path)
|
||||
);
|
||||
|
||||
if (File.Exists (hi_path)) {
|
||||
if (File.Exists (hi_path))
|
||||
path = hi_path;
|
||||
}
|
||||
}
|
||||
|
||||
return new NSImage (path) {
|
||||
Size = new SizeF (24, 24)
|
||||
};
|
||||
return new NSImage (path) { Size = new SizeF (24, 24) };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue