Skip to content

Commit

Permalink
Users Button: Change to icon and show also for other buffers #24
Browse files Browse the repository at this point in the history
  • Loading branch information
guruz committed Apr 19, 2020
1 parent fb00aa1 commit a39f570
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
</tableView>
<extendedEdge key="edgesForExtendedLayout"/>
<navigationItem key="navigationItem" id="B8F-mc-89Z">
<barButtonItem key="rightBarButtonItem" title="Users" id="lWU-an-Et9">
<barButtonItem key="rightBarButtonItem" title="⚙️" id="lWU-an-Et9">
<connections>
<segue destination="O1u-ym-bjs" kind="modal" identifier="ShowUserListSegue" id="zHr-w1-MmX"/>
</connections>
Expand Down
14 changes: 9 additions & 5 deletions quassel-for-ios/quassel-for-ios/vcs/BufferViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ - (void) setCurrentBufferId:(BufferId*)bI
//self.inputTextField.hidden = FALSE;
}

if (self.bufferType == ChannelBuffer) {
//if (self.bufferType == ChannelBuffer) {
self.navigationItem.rightBarButtonItem = userListButton;
}else {
self.navigationItem.rightBarButtonItem = nil;
}
//}else {
// self.navigationItem.rightBarButtonItem = nil;
//}
}

- (BufferId*) currentBufferId
Expand Down Expand Up @@ -847,7 +847,11 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
userListTableViewControllerPopoverController = nil;
userListTableViewController = ultvc;
}
ultvc.nicks = [quasselCoreConnection ircUsersForChannelWithBufferId:bufferId];
if (self.bufferType == ChannelBuffer) {
ultvc.nicks = [quasselCoreConnection ircUsersForChannelWithBufferId:bufferId];
} else {
ultvc.nicks = @[];
}
ultvc.callbackObject = self;
ultvc.callbackSelector = @selector(userListUserPressed:);

Expand Down

0 comments on commit a39f570

Please sign in to comment.