Commit 07e298b0 authored by Ron Soffer's avatar Ron Soffer Committed by Felix Paul Kühne
Browse files

WiFi Upload ON/OFF Switch Bug Fix



- Bug fix for WiFi Upload feature where UI vs User defaults was out of
sync for ON/OFF switch.  Now uses HTTPServer isRunning property.
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 1de2b08e
......@@ -286,7 +286,7 @@
- (IBAction)toggleHTTPServer:(UIButton *)sender
{
if (_uploadButton.enabled) {
BOOL futureHTTPServerState = ![[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingSaveHTTPUploadServerStatus];
BOOL futureHTTPServerState = !self.uploadController.httpServer.isRunning;
[[NSUserDefaults standardUserDefaults] setBool:futureHTTPServerState forKey:kVLCSettingSaveHTTPUploadServerStatus];
[self.uploadController changeHTTPServerState:futureHTTPServerState];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment