Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
2e1c3cc5
Commit
2e1c3cc5
authored
Aug 16, 2013
by
Felix Paul Kühne
Browse files
Download Controller: fix download queue action if view was never shown
parent
77fd9eab
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCDownloadViewController.m
View file @
2e1c3cc5
...
...
@@ -32,10 +32,18 @@
@implementation
VLCDownloadViewController
-
(
id
)
initWithNibName
:(
NSString
*
)
nibNameOrNil
bundle
:(
NSBundle
*
)
nibBundleOrNil
{
self
=
[
super
initWithNibName
:
nibNameOrNil
bundle
:
nibBundleOrNil
];
if
(
self
)
_currentDownloads
=
[[
NSMutableArray
alloc
]
init
];
return
self
;
}
-
(
void
)
viewDidLoad
{
[
self
.
downloadButton
setTitle
:
NSLocalizedString
(
@"BUTTON_DOWNLOAD"
,
@""
)
forState
:
UIControlStateNormal
];
_currentDownloads
=
[[
NSMutableArray
alloc
]
init
];
self
.
navigationItem
.
leftBarButtonItem
=
[
UIBarButtonItem
themedRevealMenuButtonWithTarget
:
self
andSelector
:
@selector
(
goBack
:
)];
self
.
title
=
NSLocalizedString
(
@"DOWNLOAD_FROM_HTTP"
,
@""
);
self
.
whatToDownloadHelpLabel
.
text
=
[
NSString
stringWithFormat
:
NSLocalizedString
(
@"DOWNLOAD_FROM_HTTP_HELP"
,
@""
),
[[
UIDevice
currentDevice
]
model
]];
...
...
@@ -265,6 +273,7 @@
-
(
void
)
addURLToDownloadList
:(
NSURL
*
)
aURL
{
[
_currentDownloads
addObject
:
aURL
];
[
self
.
downloadsTable
reloadData
];
[
self
_triggerNextDownload
];
}
...
...
Write
Preview
Supports
Markdown
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