Don't show the messages panel if there are no messages on this change
It looks cleaner to not present an empty block. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -303,6 +303,7 @@ public class ChangeScreen extends Screen {
|
||||
messagesContent.add(messagesMenuBar());
|
||||
}
|
||||
messagesPanel.setOpen(msgList.size() > 0);
|
||||
messagesPanel.setVisible(msgList.size() > 0);
|
||||
}
|
||||
|
||||
private LinkMenuBar messagesMenuBar() {
|
||||
|
Reference in New Issue
Block a user