Solve "Coming Soon" dialog from bubbled click event on sub-menu entries (#517)

This commit is contained in:
Keavon Chambers
2022-02-05 13:49:12 -08:00
parent 1d7ae1fd10
commit 4d232e6b46
@@ -78,6 +78,7 @@ function makeMenuEntries(editor: EditorState): MenuListEntries {
{ {
label: "Open Recent", label: "Open Recent",
shortcut: ["KeyControl", "KeyShift", "KeyO"], shortcut: ["KeyControl", "KeyShift", "KeyO"],
action: (): void => undefined,
children: [ children: [
[{ label: "Reopen Last Closed", shortcut: ["KeyControl", "KeyShift", "KeyT"], shortcutRequiresLock: true }, { label: "Clear Recently Opened" }], [{ label: "Reopen Last Closed", shortcut: ["KeyControl", "KeyShift", "KeyT"], shortcutRequiresLock: true }, { label: "Clear Recently Opened" }],
[ [
@@ -131,6 +132,7 @@ function makeMenuEntries(editor: EditorState): MenuListEntries {
{ label: "Deselect All", shortcut: ["KeyControl", "KeyAlt", "KeyA"], action: async (): Promise<void> => editor.instance.deselect_all_layers() }, { label: "Deselect All", shortcut: ["KeyControl", "KeyAlt", "KeyA"], action: async (): Promise<void> => editor.instance.deselect_all_layers() },
{ {
label: "Order", label: "Order",
action: (): void => undefined,
children: [ children: [
[ [
{ {
@@ -173,7 +175,6 @@ function makeMenuEntries(editor: EditorState): MenuListEntries {
[ [
{ {
label: "Debug: Set Log Level", label: "Debug: Set Log Level",
// TODO: Remove empty action after merge of (https://github.com/GraphiteEditor/Graphite/pull/338)
action: (): void => undefined, action: (): void => undefined,
children: [ children: [
[ [