diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-01-13 20:30:18 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-01-14 17:45:35 +0100 |
commit | 83337d9fa8ede87b42c5ac5133f5f8c1165ae329 (patch) | |
tree | 75f8ff6819c8d6775d4e0bfa0e540d30c20d5ebe /pkg/gui/types | |
parent | 84e1d15079ab688d3a7379868c8b6b71a3a6edb1 (diff) |
Allow showing Disabled errors as error panel instead of toast
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/common.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index 79b4e153c..9053e43f9 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -203,6 +203,12 @@ type MenuSection struct { type DisabledReason struct { Text string + + // When trying to invoke a disabled key binding or menu item, we normally + // show the disabled reason as a toast; setting this to true shows it as an + // error panel instead. This is useful if the text is very long, or if it is + // important enough to show it more prominently, or both. + ShowErrorInPanel bool } type MenuItem struct { |