From f7204aca42941b2f331e2105122f640f219b29e3 Mon Sep 17 00:00:00 2001 From: rooklift <16438795+rooklift@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:50:44 +0000 Subject: [PATCH] go_by_user --- src/main.js | 2 +- src/modules/hub.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index c32f259f..52e95e8e 100644 --- a/src/main.js +++ b/src/main.js @@ -962,7 +962,7 @@ function menu_build() { label: translate("MENU_GO"), accelerator: "CommandOrControl+G", click: () => { - win.webContents.send("call", "go"); + win.webContents.send("call", "go_by_user"); } }, { diff --git a/src/modules/hub.js b/src/modules/hub.js index f834a1d5..9257966c 100644 --- a/src/modules/hub.js +++ b/src/modules/hub.js @@ -779,6 +779,13 @@ let hub_main_props = { } }, + go_by_user: function() { + if (![NONE, AUTOSCROLL].includes(this.play_mode)) { + this.set_play_mode(NONE); + } + this.go(); + }, + halt: function() { // Note: if the adjustments to auto-stuff aren't wanted, just call engine.halt() directly. if (![NONE, AUTOSCROLL].includes(this.play_mode)) { this.set_play_mode(NONE);