Repository navigation
Exporter: remember the last account so deck changes export with the game closed - #7
Merged
Merged
Conversation
…ame closed HDT's ActiveDeckChanged fired, but ExportActiveDeckOnly refused with "no account information yet": the account only came from HearthMirror, which needs Hearthstone running. ResolveAccount now remembers the last live account in %LocalAppData%\DustPlanner\last-account.txt (seeded from the inbox when it holds exactly one account) and falls back to it. Found in VERIFICACION K7. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaFitGHCUzwkHrFTjz8qJb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
First K7 try: the public page did not follow a deck change made in HDT with Hearthstone closed.
exporter.loghad the answer:HDT's
ActiveDeckChangedfired (the event is hooked), butExportActiveDeckOnlyneeds the account to pick the inbox folder, and the account only came from HearthMirror — i.e. from a running, logged-in game. Everything worked earlier in the day because the game had been open in that HDT session.What
ExportService.ResolveAccount: the live account when HearthMirror has one (as before); otherwise the last account seen, kept in%LocalAppData%\DustPlanner\last-account.txt(one line:hi TAB lo TAB battletag), rewritten whenever the live one differs. Before that file exists, it is seeded from the inbox when there is exactly one account folder (so this build works right after installing, without opening the game).LastAccountinHdtExporter.Logic(serialize/parse) + 2 tests. Status text when nothing is known: open Hearthstone once; the plugin remembers the account afterwards.exporter-install.md(the new file), VERIFICACION K7 (what was found, retest with the game closed), PROGRESO.After merging
I rebuild
DustPlanner-v1.1.0.zipfrommain; retest K7 with Hearthstone closed: change deck in HDT → the page follows within ~15 s.Generated by Claude Code