10000 Fix IINA ignores config file, #5408 by low-batt · Pull Request #5409 · iina/iina · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix IINA ignores config file, #5408 #5409

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

Merged
merged 1 commit into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion iina/MPVController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ class MPVController: NSObject {
chkErr(setOptionString("watch-later-directory", Utility.watchLaterURL.path, level: .verbose))
setUserOption(PK.resumeLastPosition, type: .bool, forName: MPVOption.WatchLater.savePositionOnQuit,
verboseIfDefault: true)
setUserOption(PK.resumeLastPosition, type: .bool, forName: "resume-playback", verboseIfDefault: true)
setUserOption(PK.resumeLastPosition, type: .bool, forName: MPVOption.WatchLater.resumePlayback,
verboseIfDefault: true)

setUserOption(.initialWindowSizePosition, type: .string, forName: MPVOption.Window.geometry,
level: .verbose)
Expand Down
2 changes: 1 addition & 1 deletion iina/PlayerCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ class PlayerCore: NSObject {
}

func savePlaybackPosition() {
guard Preference.bool(for: .resumeLastPosition) else { return }
guard mpv.getFlag(MPVOption.WatchLater.savePositionOnQuit) else { return }

// The player must be active to be able to save the watch later configuration.
if info.state.active {
Expand Down
0