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;
|
IsActive = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue