Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
85a9ef4f
Commit
85a9ef4f
authored
Aug 26, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: when resetting VLC's config in the prefs panels, also reset the OS X specific NSDefaults
parent
2c6dd263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+6
-0
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+5
-0
No files found.
modules/gui/macosx/prefs.m
View file @
85a9ef4f
...
...
@@ -240,8 +240,14 @@ static VLCPrefs *_o_sharedMainInstance = nil;
{
if
(
i_return
==
NSAlertAlternateReturn
)
{
/* reset VLC's config */
config_ResetAll
(
p_intf
);
[
_rootTreeItem
resetView
];
config_SaveConfigFile
(
p_intf
);
/* reset OS X defaults */
[
NSUserDefaults
resetStandardUserDefaults
];
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
}
}
...
...
modules/gui/macosx/simple_prefs.m
View file @
85a9ef4f
...
...
@@ -742,9 +742,14 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
{
if
(
i_return
==
NSAlertAlternateReturn
)
{
/* reset VLC's config */
config_ResetAll
(
p_intf
);
[
self
resetControls
];
config_SaveConfigFile
(
p_intf
);
/* reset OS X defaults */
[
NSUserDefaults
resetStandardUserDefaults
];
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment