mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
grab focus when adding attachment
This commit is contained in:
1 parent
a9d35dcccd
commit
41e2478a6f
1 file changed
+4
-1
@@ -382,10 +382,13 @@ void ChatInput::AddAttachment(const Glib::RefPtr<Gio::File> &file) {
|
||||
};
|
||||
|
||||
if (image_exts.find(content_type) != image_exts.end()) {
|
||||
if (AddFileAsImageAttachment(file))
|
||||
if (AddFileAsImageAttachment(file)) {
|
||||
m_attachments_revealer.set_reveal_child(true);
|
||||
m_input.grab_focus();
|
||||
}
|
||||
} else if (m_attachments.AddFile(file)) {
|
||||
m_attachments_revealer.set_reveal_child(true);
|
||||
m_input.grab_focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user