Commit 8b601232 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Minor WiFi Upload item tweak

parent dc17907b
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
self.view.frame = CGRectMake(0.0f, 0.0f,kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds)); self.view.frame = CGRectMake(0.0f, 0.0f,kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds));
[self netReachabilityChanged:nil];
} }
- (void)netReachabilityChanged:(NSNotification *)notification - (void)netReachabilityChanged:(NSNotification *)notification
...@@ -123,7 +124,7 @@ ...@@ -123,7 +124,7 @@
_uploadLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", @""); _uploadLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", @"");
} else { } else {
_uploadButton.enabled = NO; _uploadButton.enabled = NO;
[_uploadButton setImage:[UIImage imageNamed:@"WiFi-off"] forState:UIControlStateNormal]; [_uploadButton setImage:[UIImage imageNamed:@"WiFiUp"] forState:UIControlStateNormal];
_uploadLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_NO_CONNECTIVITY", @""); _uploadLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_NO_CONNECTIVITY", @"");
[self.uploadController changeHTTPServerState:NO]; [self.uploadController changeHTTPServerState:NO];
} }
...@@ -269,12 +270,14 @@ ...@@ -269,12 +270,14 @@
- (IBAction)toggleHTTPServer:(UIButton *)sender - (IBAction)toggleHTTPServer:(UIButton *)sender
{ {
BOOL futureHTTPServerState = ![[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingSaveHTTPUploadServerStatus]; if (_uploadButton.enabled) {
BOOL futureHTTPServerState = ![[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingSaveHTTPUploadServerStatus];
[[NSUserDefaults standardUserDefaults] setBool:futureHTTPServerState forKey:kVLCSettingSaveHTTPUploadServerStatus]; [[NSUserDefaults standardUserDefaults] setBool:futureHTTPServerState forKey:kVLCSettingSaveHTTPUploadServerStatus];
[self.uploadController changeHTTPServerState:futureHTTPServerState]; [self.uploadController changeHTTPServerState:futureHTTPServerState];
[self updateHTTPServerAddress]; [self updateHTTPServerAddress];
[[NSUserDefaults standardUserDefaults] synchronize]; [[NSUserDefaults standardUserDefaults] synchronize];
}
} }
- (void)_revealItem:(NSUInteger)itemIndex inSection:(NSUInteger)sectionNumber - (void)_revealItem:(NSUInteger)itemIndex inSection:(NSUInteger)sectionNumber
......
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