mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Use DevMode option instead of debug check
This commit is contained in:
parent
24635bdfd8
commit
318ebc8d69
2 changed files with 3 additions and 8 deletions
|
@ -258,8 +258,7 @@ private void UpdateTitle(HistoryItem[] historyItems = null)
|
||||||
|
|
||||||
string[] typeNames = Enum.GetNames(typeof(EDataType));
|
string[] typeNames = Enum.GetNames(typeof(EDataType));
|
||||||
string[] typeTranslations = Helpers.GetLocalizedEnumDescriptions<EDataType>();
|
string[] typeTranslations = Helpers.GetLocalizedEnumDescriptions<EDataType>();
|
||||||
Dictionary<string, string> lookup = Enumerable.Zip(typeNames, typeTranslations, (key, val) => new { key, val } )
|
Dictionary<string, string> lookup = Enumerable.Zip(typeNames, typeTranslations, (key, val) => new { key, val }).ToDictionary(e => e.key, e => e.val);
|
||||||
.ToDictionary(e => e.key, e => e.val);
|
|
||||||
|
|
||||||
IEnumerable<string> types = historyItems.
|
IEnumerable<string> types = historyItems.
|
||||||
GroupBy(x => x.Type).
|
GroupBy(x => x.Type).
|
||||||
|
@ -403,12 +402,10 @@ private void HistoryForm_KeyDown(object sender, KeyEventArgs e)
|
||||||
RefreshHistoryItems();
|
RefreshHistoryItems();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
break;
|
break;
|
||||||
#if DEBUG
|
case Keys.Control | Keys.F5 when HelpersOptions.DevMode:
|
||||||
case Keys.Control | Keys.F5:
|
|
||||||
RefreshHistoryItems(true);
|
RefreshHistoryItems(true);
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,12 +194,10 @@ private void ImageHistoryForm_KeyDown(object sender, KeyEventArgs e)
|
||||||
RefreshHistoryItems();
|
RefreshHistoryItems();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
break;
|
break;
|
||||||
#if DEBUG
|
case Keys.Control | Keys.F5 when HelpersOptions.DevMode:
|
||||||
case Keys.Control | Keys.F5:
|
|
||||||
RefreshHistoryItems(true);
|
RefreshHistoryItems(true);
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue