Skip to content

Commit

Permalink
Try and improve tokenizer opening speeds when frame directory not set
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Mar 20, 2022
1 parent 323da91 commit 9193776
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# [3.6.4]

* try and improve tokenizer opening speed.

# [3.6.3]

* @OldMightyFriendlyGamer#0832 a thinner token ring set added.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tokenizer",
"version": "3.6.3",
"version": "3.6.4",
"license": "MIT",
"scripts": {
"lint": "npx eslint src/",
Expand Down
4 changes: 3 additions & 1 deletion src/tokenizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export default class Tokenizer extends FormApplication {
const directoryPath = game.settings.get("vtta-tokenizer", "frame-directory");
logger.debug(`Checking for files in ${directoryPath}...`);
const dir = DirectoryPicker.parse(directoryPath);
const folderFrames = await this.getDirectoryFrameData(dir.activeSource, { bucket: dir.bucket }, dir.current);
const folderFrames = (directoryPath.trim() !== "")
? await this.getDirectoryFrameData(dir.activeSource, { bucket: dir.bucket }, dir.current)
: [];

this.getOMFGFrames();

Expand Down

0 comments on commit 9193776

Please sign in to comment.