Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
9488135e
Commit
9488135e
authored
Jun 16, 2013
by
Romain Goyet
Committed by
Felix Paul Kühne
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Safer state machine for settings initialization
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
13bf28e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
AspenProject/VLCMenuViewController.m
AspenProject/VLCMenuViewController.m
+7
-4
No files found.
AspenProject/VLCMenuViewController.m
View file @
9488135e
...
...
@@ -144,11 +144,14 @@
-
(
IBAction
)
showSettings
:(
id
)
sender
{
if
(
!
self
.
settingsViewController
)
self
.
settingsViewController
=
[[
IASKAppSettingsViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
if
(
!
self
.
settingsController
)
if
(
!
self
.
settingsController
)
{
self
.
settingsController
=
[[
VLCSettingsController
alloc
]
init
];
}
if
(
!
self
.
settingsViewController
)
{
self
.
settingsViewController
=
[[
IASKAppSettingsViewController
alloc
]
initWithStyle
:
UITableViewStyleGrouped
];
self
.
settingsController
.
viewController
=
self
.
settingsViewController
;
}
self
.
settingsViewController
.
modalPresentationStyle
=
UIModalPresentationFormSheet
;
self
.
settingsViewController
.
delegate
=
self
.
settingsController
;
...
...
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