Skip to content

Commit

Permalink
go_by_user
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Feb 1, 2024
1 parent 25000b0 commit f7204ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
},
{
Expand Down
7 changes: 7 additions & 0 deletions src/modules/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7204ac

Please sign in to comment.