Skip to content

Commit

Permalink
fix: Reset current page to 0 on browse
Browse files Browse the repository at this point in the history
  • Loading branch information
mrseanryan committed Dec 29, 2018
1 parent 3f04222 commit 34e4a64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electronApp/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ function addSelectDirectoryListener() {

if (directories && directories.length === 1) {
state.epoch++;
state.currentPage = 0;
state.imageInputDir = directories[0];
renderImagesAndPager();
}
Expand Down

0 comments on commit 34e4a64

Please sign in to comment.