|
|
@ -522,13 +522,9 @@
|
|
|
|
wanStatus = [wanStatus substringToIndex:[wanStatus rangeOfString:@"&"].location];
|
|
|
|
wanStatus = [wanStatus substringToIndex:[wanStatus rangeOfString:@"&"].location];
|
|
|
|
[menuWanStatus setTitle:[NSString stringWithFormat:@"%@ %@", wanName, wanStatus]];
|
|
|
|
[menuWanStatus setTitle:[NSString stringWithFormat:@"%@ %@", wanName, wanStatus]];
|
|
|
|
|
|
|
|
|
|
|
|
//if ([_appMenu image] != nil) {
|
|
|
|
|
|
|
|
// [self showMenubarIcon:[wanStatus isEqualToString:@"Connected"]];
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSString *wanUptime = [wrt_request_client getKey:_statusStringData key:@"wan_uptime"];
|
|
|
|
NSString *wanUptime = [wrt_request_client getKey:_statusStringData key:@"wan_uptime"];
|
|
|
|
if ([wanStatus isEqualToString:@"Connected"] == true) {
|
|
|
|
if ([wanStatus isEqualToString:@"Connected"] == true) {
|
|
|
|
[menuWanUptime setTitle:wanUptime];
|
|
|
|
[menuWanUptime setTitle:[NSString stringWithFormat:@"Up %@", wanUptime]];
|
|
|
|
[menuWanUptime setHidden:false];
|
|
|
|
[menuWanUptime setHidden:false];
|
|
|
|
[menuWanSeparator setHidden:false];
|
|
|
|
[menuWanSeparator setHidden:false];
|
|
|
|
[menuWanBandwidthGraph setEnabled:true];
|
|
|
|
[menuWanBandwidthGraph setEnabled:true];
|
|
|
|