Commit ef4269e1 authored by Michael Gratton's avatar Michael Gratton 🍸 Committed by Michael Gratton
Browse files

client: Add convenience accessors for conversation list/viewer being shown

parent 78b3fddb
......@@ -282,6 +282,29 @@ public class Application.MainWindow :
get; private set; default = null;
}
/** Specifies if the conversation list is currently displayed. */
public bool is_conversation_list_shown {
get {
return (
(!this.outer_leaflet.folded ||
this.outer_leaflet.visible_child_name == INNER_LEAFLET) &&
(!this.inner_leaflet.folded ||
this.inner_leaflet.visible_child_name == CONVERSATION_LIST)
);
}
}
/** Specifies if the conversation viewer is currently displayed. */
public bool is_conversation_viewer_shown {
get {
return (
(!this.outer_leaflet.folded ||
this.outer_leaflet.visible_child_name == CONVERSATION_VIEWER) &&
!this.has_composer
);
}
}
/** The attachment manager for this window. */
public AttachmentManager attachments { get; private set; }
......
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