javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
144 stars 30 forks source link

'Start Encounter' does not create a new log file #243

Open ftrx opened 8 months ago

ftrx commented 8 months ago

Check for existing bug reports before submitting.

Expected Behavior

In a named encounter block the 'Start Encounter' button should create a new encounter, which on play creates a new log file with the name of the encounter.

Current behaviour

The 'Start Encounter' button creates a new encounter, but no new log file is created. Instead the last log file will be continued.

One needs to first create a new encounter in the 'Initiative Tracker' (submenu 'New Encounter') window and than the 'Start Encounter' button will update the encounter and also create the correct log file when starting the encounter.

Reproduction

  1. Create two differently named encounters
  2. Start the first encounter.
  3. A new log file is created with the correct name
  4. End the encounter and start the second encounter.
  5. Instead of creating a new log file, it continues the previous one.
  6. Create a new Encounter in the Initiative Tracker Window.
  7. Start the second encounter again and it now creates the right log file.

Which Operating Systems are you using?

Obsidian Version Check

1.5.3 (Windows) and 1.4.16 (iOS)

Plugin Version

12.4.2

Confirmation

Possible solution

No response