@@ -119,8 +119,9 @@ public List<object>? SubActions
119
119
public bool AlwaysShowLabel { get ; set ; }
120
120
public RoutingStrategies RoutingStrategy { get ; set ; } = RoutingStrategies . Bubble ;
121
121
122
- public abstract string ShortcutText { get ; }
122
+ protected abstract string InternalShortcutText { get ; }
123
123
124
+ [ Reactive ] public string ShortcutText { get ; set ; } = "" ;
124
125
[ Reactive ] public string ActionName { get ; set ; } = "" ;
125
126
[ Reactive ] public Image ? ActionIcon { get ; set ; }
126
127
[ Reactive ] public bool Enabled { get ; set ; }
@@ -169,6 +170,7 @@ public void Update()
169
170
{
170
171
ActionName = Name ;
171
172
173
+ ShortcutText = InternalShortcutText ;
172
174
if ( ShortcutText . Length > 0 ) {
173
175
TooltipText = $ "{ Name } ({ ShortcutText } )";
174
176
} else {
@@ -233,7 +235,7 @@ public MainMenuAction(EmulatorShortcut? shortcut)
233
235
}
234
236
}
235
237
236
- public override string ShortcutText
238
+ protected override string InternalShortcutText
237
239
{
238
240
get
239
241
{
@@ -250,7 +252,7 @@ public override string ShortcutText
250
252
public class ContextMenuAction : BaseMenuAction
251
253
{
252
254
public Func < DbgShortKeys > ? Shortcut { get ; set ; }
253
- public override string ShortcutText => Shortcut ? . Invoke ( ) . ToString ( ) ?? "" ;
255
+ protected override string InternalShortcutText => Shortcut ? . Invoke ( ) . ToString ( ) ?? "" ;
254
256
255
257
public override void Dispose ( )
256
258
{
0 commit comments