fix: Compiling for CachyOS

- Made CreateScrollArea function static to limit its linkage to the current translation unit.

Signed-off-by: Boss.sfc <boss.sfc@citron-emu.org>
This commit is contained in:
Boss.sfc
2025-07-22 13:29:16 +07:00
parent bd6dd7f0ff
commit e02ba8b5bf

View File

@@ -36,7 +36,7 @@
#include "citron/uisettings.h"
// Helper function to create a scroll area for a widget
QScrollArea* CreateScrollArea(QWidget* widget) {
static QScrollArea* CreateScrollArea(QWidget* widget) {
auto* scroll_area = new QScrollArea();
scroll_area->setWidget(widget);
scroll_area->setWidgetResizable(true);