mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
added PageHome, PageSettings, PageShare, PageStart
- renamed old PageStart to PageSetupWizardStart - added various text types - moved servers model to "global" scope
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
ServerListLogic::ServerListLogic(UiLogic *logic, QObject *parent):
|
||||
PageLogicBase(logic, parent),
|
||||
m_serverListModel{new ServersModel(this)}
|
||||
m_serverListModel{new ServersModel(m_settings, this)}
|
||||
{
|
||||
|
||||
}
|
||||
@@ -33,7 +33,7 @@ void ServerListLogic::onUpdatePage()
|
||||
{
|
||||
const QJsonArray &servers = m_settings->serversArray();
|
||||
int defaultServer = m_settings->defaultServerIndex();
|
||||
std::vector<ServerModelContent> serverListContent;
|
||||
QVector<ServerModelContent> serverListContent;
|
||||
for(int i = 0; i < servers.size(); i++) {
|
||||
ServerModelContent c;
|
||||
auto server = servers.at(i).toObject();
|
||||
|
||||
Reference in New Issue
Block a user