Commit 0d13da97 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Support stop packet

parent aa7d6d23
......@@ -71,6 +71,12 @@ PresenterPlugin::~PresenterPlugin()
bool PresenterPlugin::receivePacket(const NetworkPacket& np)
{
if (np.get<bool>(QStringLiteral("stop"), false)) {
delete m_view;
m_view = nullptr;
return true;
}
if (!m_view) {
m_view = new PresenterView;
m_view->showFullScreen();
......
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