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

Fix Open Recent menu cleared with each new build, #4688 #4730

Merged
merged 1 commit into from Jan 6, 2024

Conversation

low-batt
Copy link
Contributor

This commit will:

  • Add a recentDocuments setting to Preference
  • Add the method saveRecentDocuments to AppDelegate
  • Add a call to saveRecentDocuments in:
    • AppDelegate.openFile
    • PlayerCore.fileLoaded
    • PrefGeneralViewController.rememberRecentChanged
    • PrefUtilsViewController.clearHistoryBtnAction
  • Add the method restoreRecentDocuments to AppDelegate
  • Add a call to restoreRecentDocuments in AppDelegate.applicationWillFinishLaunching

Other than the adding the recentDocuments preference, all changes are only included in debug builds as this is a workaround that is only intended to provide a better experience for developers.

The workaround saves the list of recently opened files as an IINA setting so that the list can be restored when sharedfilelistd clears the list due to the ad hoc certificate used in developer builds.


Description:

This commit will:
- Add a recentDocuments setting to Preference
- Add the method saveRecentDocuments to AppDelegate
- Add a call to saveRecentDocuments in:
    - AppDelegate.openFile
    - PlayerCore.fileLoaded
    - PrefGeneralViewController.rememberRecentChanged
    - PrefUtilsViewController.clearHistoryBtnAction
- Add the method restoreRecentDocuments to AppDelegate
- Add a call to restoreRecentDocuments in
    AppDelegate.applicationWillFinishLaunching

Other than the adding the recentDocuments preference, all changes are
only included in debug builds as this is a workaround that is only
intended to provide a better experience for developers.

The workaround saves the list of recently opened files as an IINA
setting so that the list can be restored when sharedfilelistd clears
the list due to the ad hoc certificate used in developer builds.
@low-batt low-batt linked an issue Dec 22, 2023 that may be closed by this pull request
1 task
@low-batt low-batt merged commit fcd4464 into develop Jan 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open Recent menu cleared with each new build
1 participant