Fix coding style issue on RenderWidget.cpp

This commit is contained in:
jasaaved
2026-03-25 07:29:24 -07:00
parent 1fb73e1580
commit 282643b182

View File

@@ -208,9 +208,9 @@ void RenderWidget::showFullScreen()
{
const int monitor_index = Config::Get(Config::MAIN_DISPLAY_MONITOR);
const QList<QScreen*> screens = QGuiApplication::screens();
QScreen* const target_screen = (monitor_index > 0 && monitor_index <= screens.size())
? screens[monitor_index - 1]
: QGuiApplication::primaryScreen();
QScreen* const target_screen = (monitor_index > 0 && monitor_index <= screens.size()) ?
screens[monitor_index - 1] :
QGuiApplication::primaryScreen();
if (monitor_index > 0)
{
const QRect geo = target_screen->geometry();