mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-22 12:35:21 +00:00
Log Frame: Make clear act clear pending messages (#14004)
This commit is contained in:
parent
b436d2a7f4
commit
59430ee83e
1 changed files with 7 additions and 0 deletions
|
@ -100,6 +100,12 @@ struct gui_listener : logs::listener
|
|||
pending = queue.pop_all();
|
||||
return pending.get();
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
pending = lf_queue_slice<packet_t>();
|
||||
queue.pop_all();
|
||||
}
|
||||
};
|
||||
|
||||
// GUI Listener instance
|
||||
|
@ -232,6 +238,7 @@ void log_frame::CreateAndConnectActions()
|
|||
{
|
||||
m_old_log_text.clear();
|
||||
m_log->clear();
|
||||
s_gui_listener.clear();
|
||||
});
|
||||
|
||||
m_clear_tty_act = new QAction(tr("Clear"), this);
|
||||
|
|
Loading…
Add table
Reference in a new issue