mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes [skip ci]
This commit is contained in:
parent
61cfe004c5
commit
798ca503a5
108 changed files with 1981 additions and 2258 deletions
|
@ -56,7 +56,7 @@ namespace ExternalCommand {
|
|||
void ButtonDeleteClick(object sender, EventArgs e) {
|
||||
foreach(ListViewItem item in listView1.SelectedItems) {
|
||||
string commando = item.Tag as string;
|
||||
config.commands.Remove(commando);
|
||||
config.Commands.Remove(commando);
|
||||
config.commandlines.Remove(commando);
|
||||
config.arguments.Remove(commando);
|
||||
}
|
||||
|
@ -65,12 +65,12 @@ namespace ExternalCommand {
|
|||
|
||||
void UpdateView() {
|
||||
listView1.Items.Clear();
|
||||
if(config.commands != null) {
|
||||
if(config.Commands != null) {
|
||||
listView1.ListViewItemSorter = new ListviewComparer();
|
||||
ImageList imageList = new ImageList();
|
||||
listView1.SmallImageList = imageList;
|
||||
int imageNr = 0;
|
||||
foreach(string commando in config.commands) {
|
||||
foreach(string commando in config.Commands) {
|
||||
ListViewItem item = null;
|
||||
Image iconForExe = IconCache.IconForCommand(commando);
|
||||
if(iconForExe != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue