Skip to content

Commit

Permalink
Fix: Reading shortcuts remain active when going back to recently opened
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Dec 1, 2023
1 parent e8e2c16 commit 716c10b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
##### 🐛 Bug Fixes

- Error when resizing after exit comic opened from recents [`8291730`](https://github.com/ollm/OpenComic/commit/829173058bb3dde12d35b726070c19ec43a63be3)
- When reloading, change view or sorting a folder opens reading mode in some cases
- When reloading, change view or sorting a folder opens reading mode in some cases [`e8e2c16`](https://github.com/ollm/OpenComic/commit/e8e2c16a18d8f0c03b6b00b09a7c0d1bf8a24032)
- Reading shortcuts remain active when going back to recently opened

## [v1.0.0-beta.5](https://github.com/ollm/OpenComic/releases/tag/v1.0.0-beta.5) (24-11-2023)

Expand Down
3 changes: 3 additions & 0 deletions scripts/recently-opened.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async function load(animation = true, content = false)
dom.floatingActionButton(false);
}

shortcuts.register('browse');
gamepad.updateBrowsableItems('recently-opened');

events.events();
}

Expand Down
2 changes: 1 addition & 1 deletion templates/settings.content.right.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h2 class="headline-small">{{language.settings.navigation.folders}}</h2>
</div>
</div>

<div class="menu-simple-text gamepad-item settings-when-open-folder-continue-reading{{#if config.whenOpenFolderContinueReading}} disable-pointer{{/if}}">
<div class="menu-simple-text gamepad-item settings-when-open-folder-continue-reading{{#if config.whenOpenFolderFirstImageOrContinueReading}} disable-pointer{{/if}}">
<span>{{language.settings.navigation.whenOpenFolderContinueReading}}</span>
<div class="switch{{#if config.whenOpenFolderContinueReading}} a{{/if}}" on="settings.set('whenOpenFolderContinueReading', true)" off="settings.set('whenOpenFolderContinueReading', false)">
<div></div>
Expand Down

0 comments on commit 716c10b

Please sign in to comment.