Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to load MRU campaign at startup #4870

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

bubblobill
Copy link
Collaborator

@bubblobill bubblobill commented Aug 3, 2024

Identify the Bug or Feature request

resolves #4869

Description of the Change

Added preference to load the most recently used campaign at startup.

Startup now loads in the order:

  1. Auto-save recovery, or
  2. Command-line option -F , or
  3. Most recent campaign, or
  4. Blank campaign.
  • Added pref KEY_LOAD_MRU_CAMPAIGN_AT_START
  • Changed AutoSaveManager.check() from void to boolean.
  • Changed command-line campaign load to only execute when not recovering auto-save.
  • (unrelated) Removed annoying Scale.setZoomLevel "System.out.println(this.zoomLevel);" that has been bugging me.

Possible Drawbacks

Buggy campaign locking MapTool on load. Can be worked around by launching with command-line options -F or waiting for auto-save to trigger recover auto-save on next launch.

Documentation Notes

  • Added preference to launch most recent campaign at startup.

Release Notes

  • Added preference to launch most recent campaign at startup.

This change is Reviewable

…ave recovery and command-line campaign load.

Added pref KEY_LOAD_MRU_CAMPAIGN_AT_START
Changed AutoSaveManager.check() from void to boolean.
Changed command-line campaign load to only execute when not recovering auto-save.
Removed annoying Scale.setZoomLevel  "System.out.println(this.zoomLevel);" that has been bugging me.
@cwisniew cwisniew added the feature Adding functionality that adds value label Aug 5, 2024
@cwisniew cwisniew added this pull request to the merge queue Aug 5, 2024
Merged via the queue into RPTools:develop with commit 5ddd17e Aug 5, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: New Preference - Load MRU campaign at startup
2 participants