Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
1f41004d
There was a problem fetching the pipeline summary.
Commit
1f41004d
authored
7 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'aggraef/purr-data-osx-prefs-fix'
parents
acd148a5
890310eb
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/s_file.c
+12
-0
12 additions, 0 deletions
pd/src/s_file.c
with
12 additions
and
0 deletions
pd/src/s_file.c
+
12
−
0
View file @
1f41004d
...
...
@@ -268,6 +268,8 @@ static char *sys_prefbuf;
// prefs is *much* faster now than with the previous method which invoked
// 'defaults read' on each individual key.
static
int
save_prefs_later
=
0
;
static
void
sys_initloadpreferences
(
void
)
{
char
cmdbuf
[
MAXPDSTRING
],
*
buf
;
...
...
@@ -308,6 +310,8 @@ static void sys_initloadpreferences(void)
// Read from the package defaults and write to the user prefs.
prefs
=
default_prefs
;
strncpy
(
current_prefs
,
user_prefs
,
FILENAME_MAX
);
// AG: Remember to save the prefs later after we loaded them (see below).
save_prefs_later
=
1
;
}
// This looks complicated, but is rather straightforward. The individual
// stages of the pipe are:
...
...
@@ -405,6 +409,14 @@ static void sys_doneloadpreferences( void)
if
(
sys_prefbuf
)
free
(
sys_prefbuf
);
sys_prefbuf
=
NULL
;
if
(
save_prefs_later
)
{
// AG: We need to save the default prefs to the user prefs at this point
// in order to avoid losing them, in case the recent file list is written
// without first saving the defaults (fixes #339).
extern
void
glob_savepreferences
(
t_pd
*
dummy
);
glob_savepreferences
(
NULL
);
save_prefs_later
=
0
;
}
}
// AG: We use a similar approach here to import the data into the defaults
...
...
This diff is collapsed.
Click to expand it.
Albert Gräf
@aggraef
mentioned in issue
#429 (closed)
·
7 years ago
mentioned in issue
#429 (closed)
mentioned in issue #429
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment