mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fix error when pressing F1 during image editing
The proper condition should've been if(form.IsAnnotationMode && !form.IsEditorMode) but I guess checking for null is more robust here
This commit is contained in:
parent
644f503fce
commit
3841eacd2a
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ private void form_KeyDown(object sender, KeyEventArgs e)
|
|||
break;
|
||||
case Keys.F1:
|
||||
Config.ShowHotkeys = !Config.ShowHotkeys;
|
||||
if(form.IsAnnotationMode)
|
||||
if(tsmiTips != null)
|
||||
tsmiTips.Checked = Config.ShowHotkeys;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue