mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12: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();
|
pending = queue.pop_all();
|
||||||
return pending.get();
|
return pending.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clear()
|
||||||
|
{
|
||||||
|
pending = lf_queue_slice<packet_t>();
|
||||||
|
queue.pop_all();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// GUI Listener instance
|
// GUI Listener instance
|
||||||
|
@ -232,6 +238,7 @@ void log_frame::CreateAndConnectActions()
|
||||||
{
|
{
|
||||||
m_old_log_text.clear();
|
m_old_log_text.clear();
|
||||||
m_log->clear();
|
m_log->clear();
|
||||||
|
s_gui_listener.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
m_clear_tty_act = new QAction(tr("Clear"), this);
|
m_clear_tty_act = new QAction(tr("Clear"), this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue