Skip to content

Commit

Permalink
Fix new keybinds not being changeable in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Apr 6, 2024
1 parent 34c536c commit 535af3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 8 additions & 2 deletions assets/electron/controllerActions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,14 @@ Binding4:
Binding5:
displayName: Binding5
composable: true
Reload:
displayName: Reload
ServerReconnect:
displayName: ServerReconnect
composable: true
ReloadSeed:
displayName: ReloadSeed
composable: true
ShowFlags:
displayName: ShowFlags
composable: true
ShowLastPickup:
displayName: ShowLastPickup
Expand Down
10 changes: 8 additions & 2 deletions assets/electron/keyboardActions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ Binding4:
Binding5:
displayName: Binding5
composable: true
Reload:
displayName: Reload
ServerReconnect:
displayName: ServerReconnect
composable: true
ReloadSeed:
displayName: ReloadSeed
composable: true
ShowFlags:
displayName: ShowFlags
composable: true
ShowLastPickup:
displayName: ShowLastPickup
Expand Down
4 changes: 2 additions & 2 deletions electron/src/lib/LauncherService.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class LauncherService {

if (await this.isRandomizerRunning()) {
try {
await RandoIPCService.emit('reload')
await RandoIPCService.emit('reread_seed_source')
await focusGameWindow()
} catch (e) {
console.error(e)
Expand Down Expand Up @@ -166,7 +166,7 @@ export class LauncherService {

if (await this.isRandomizerRunning()) {
try {
await RandoIPCService.emit('reload')
await RandoIPCService.emit('reread_seed_source')
} catch (e) {
console.error(e)
throw new Error('Could not load the seed in running game.\nPlease wait a few seconds if you closed the game just now.')
Expand Down

0 comments on commit 535af3d

Please sign in to comment.