summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/types/common.go')
-rw-r--r--pkg/gui/types/common.go6
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 {