Commit 697b34d1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Local Network List Cell: robustify appearance setters

parent 10e29bab
......@@ -30,13 +30,18 @@
self.downloadButton.hidden = YES;
}
- (void)setIsDirectory:(BOOL)isDirectory
{
self.titleLabel.hidden = self.subtitleLabel.hidden = isDirectory;
self.folderTitleLabel.hidden = !isDirectory;
_isDirectory = isDirectory;
}
- (void)setTitle:(NSString *)title
{
BOOL isDir = self.isDirectory;
if (isDir)
self.folderTitleLabel.text = title;
else
self.titleLabel.text = title;
self.folderTitleLabel.text = self.titleLabel.text = title;
self.titleLabel.hidden = self.subtitleLabel.hidden = isDir;
self.folderTitleLabel.hidden = !isDir;
......
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