Skip to content

Commit 6d37ac8

Browse files
Merge pull request #592 from Rdmkr/feature/godleyEditModeFunctionality
context menu interactivity in edit mode + after wedge clicking
2 parents e8c1951 + c28ac62 commit 6d37ac8

File tree

10 files changed

+318
-363
lines changed

10 files changed

+318
-363
lines changed

gui-js/apps/minsky-electron/src/app/events/electron.events.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ ipcMain.on(events.CONTEXT_MENU, async (event, { x, y, type, command}) => {
234234
await ContextMenuManager.initContextMenu(event, x, y, type, command);
235235
});
236236

237+
ipcMain.on(events.CLICK_MENU, async (event, { x, y, type, command}) => {
238+
await ContextMenuManager.initClickMenu(event, x, y, type, command);
239+
});
240+
237241
ipcMain.on(
238242
events.DISPLAY_MOUSE_COORDINATES,
239243
async (event, { mouseX, mouseY }) => {

gui-js/apps/minsky-electron/src/app/managers/CommandsManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class CommandsManager {
229229
title: `Edit godley title`,
230230
url: `#/headless/edit-godley-title?title=${encodeURIComponent(title) || ''}&itemId=${godleyId}`,
231231
useContentSize: true,
232-
height: 100,
232+
height: 80,
233233
width: 400,
234234
});
235235
}
@@ -239,7 +239,7 @@ export class CommandsManager {
239239
title: `Edit godley currency`,
240240
url: `#/headless/edit-godley-currency`,
241241
useContentSize: true,
242-
height: 100,
242+
height: 80,
243243
width: 400,
244244
});
245245
}

0 commit comments

Comments
 (0)