Added lazy loading

This commit is contained in:
Jon ESA
2026-04-01 19:40:20 +01:00
parent e10e7127b7
commit f6c6d4e9dc
3 changed files with 111 additions and 42 deletions

View File

@@ -25,6 +25,11 @@ public:
void setVersionsPanel(VersionsPanel *panel);
bool isConnected() const;
// Called by main when user selects a tab for the first time
void requestGamesData();
void requestVersionsData();
void requestSettingsData();
public slots:
void startConnection();
void closeConnection();
@@ -40,13 +45,17 @@ private:
void handleProtocol(const QString &msg);
void broadcast(const QString &line);
QLineEdit *m_urlEdit = nullptr;
QLabel *m_statusLabel = nullptr;
QLineEdit *m_urlEdit = nullptr;
QLabel *m_statusLabel = nullptr;
QWebSocket m_socket;
QList<QTextEdit *> m_logs;
SettingsTree *m_settingsTree = nullptr;
GamesPanel *m_gamesPanel = nullptr;
VersionsPanel *m_versionsPanel = nullptr;
SettingsTree *m_settingsTree = nullptr;
GamesPanel *m_gamesPanel = nullptr;
VersionsPanel *m_versionsPanel = nullptr;
QStringList m_settingsKeys;
int m_rnpCount = -1;
int m_rnpCount = -1;
bool m_gamesRequested = false;
bool m_versionsRequested = false;
bool m_settingsRequested = false;
};