mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
update pins window on pin/unpin
This commit is contained in:
@@ -280,6 +280,12 @@ void ChatList::SetUsePinnedMenu() {
|
||||
m_use_pinned_menu = true;
|
||||
}
|
||||
|
||||
void ChatList::ActuallyRemoveMessage(Snowflake id) {
|
||||
auto it = m_id_to_widget.find(id);
|
||||
if (it != m_id_to_widget.end())
|
||||
RemoveMessageAndHeader(it->second);
|
||||
}
|
||||
|
||||
void ChatList::OnScrollEdgeOvershot(Gtk::PositionType pos) {
|
||||
if (pos == Gtk::POS_TOP)
|
||||
m_signal_action_chat_load_history.emit(m_active_channel);
|
||||
|
||||
@@ -22,6 +22,7 @@ public:
|
||||
std::vector<Snowflake> GetRecentAuthors();
|
||||
void SetSeparateAll(bool separate);
|
||||
void SetUsePinnedMenu(); // i think i need a better way to do menus
|
||||
void ActuallyRemoveMessage(Snowflake id); // perhaps not the best method name
|
||||
|
||||
private:
|
||||
void OnScrollEdgeOvershot(Gtk::PositionType pos);
|
||||
|
||||
Reference in New Issue
Block a user