Trim main task queue, recording label, and canvas draw callbacks
This commit is contained in:
10
src/app.cpp
10
src/app.cpp
@@ -214,6 +214,7 @@ void App::initLog()
|
||||
namespace pp::panopainter
|
||||
{
|
||||
bool process_legacy_recording_worker_iteration(App& app);
|
||||
void update_legacy_recording_frame_label(App& app);
|
||||
}
|
||||
|
||||
bool App::check_license()
|
||||
@@ -566,14 +567,7 @@ void App::update_memory_usage(size_t bytes)
|
||||
|
||||
void App::update_rec_frames()
|
||||
{
|
||||
if (auto txt = layout[main_id]->find<NodeText>("txt-rec"))
|
||||
{
|
||||
const auto label = pp::app::make_recording_frame_label(
|
||||
rec_running,
|
||||
Canvas::I->m_encoder != nullptr,
|
||||
Canvas::I->m_encoder ? Canvas::I->m_encoder->frames_count() : 0);
|
||||
txt->set_text(label.text.c_str());
|
||||
}
|
||||
pp::panopainter::update_legacy_recording_frame_label(*this);
|
||||
}
|
||||
|
||||
int App::res_from_index(int i)
|
||||
|
||||
Reference in New Issue
Block a user