Commit 92e6ef08 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

menu: do only show http uploader's port if it isn't 80

parent 570214f1
......@@ -225,9 +225,12 @@
- (void)updateHTTPServerAddress
{
HTTPServer *server = self.uploadController.httpServer;
if (server.isRunning)
_uploadLocationLabel.text = [NSString stringWithFormat:@"http://%@:%i", [self.uploadController currentIPAddress], server.listeningPort];
else
if (server.isRunning) {
if (server.listeningPort != 80)
_uploadLocationLabel.text = [NSString stringWithFormat:@"http://%@:%i", [self.uploadController currentIPAddress], server.listeningPort];
else
_uploadLocationLabel.text = [NSString stringWithFormat:@"http://%@", [self.uploadController currentIPAddress]];
} else
_uploadLocationLabel.text = NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", @"");
}
......
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