Simplify poweroff behaviour

This commit is contained in:
Lorenzooone
2024-06-02 21:34:41 +02:00
parent f572c42bbb
commit e7a2073246
4 changed files with 5 additions and 21 deletions

View File

@@ -27,7 +27,6 @@ WindowScreen::WindowScreen(ScreenType stype, CaptureStatus* capture_status, Disp
FPSArrayInit(&this->in_fps);
FPSArrayInit(&this->draw_fps);
FPSArrayInit(&this->poll_fps);
this->triggered_poweroff = false;
this->in_tex.create(IN_VIDEO_WIDTH, IN_VIDEO_HEIGHT);
this->m_in_rect_top.setTexture(&this->in_tex);
this->m_in_rect_bot.setTexture(&this->in_tex);
@@ -211,8 +210,6 @@ void WindowScreen::update_connection() {
}
void WindowScreen::print_notification(std::string text, TextKind kind) {
if(this->triggered_poweroff)
return;
this->notification->setText(text);
this->notification->setRectangleKind(kind);
this->notification->startTimer(true);