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