This commit is contained in:
Pokamest Nikak 2021-09-07 21:01:56 +03:00
parent deaeda59d0
commit 539bf2ee24
42 changed files with 678 additions and 940 deletions

View file

@ -3,12 +3,8 @@
#include "vpnconnection.h"
#include "../uilogic.h"
using namespace amnezia;
using namespace PageEnumNS;
ServerListLogic::ServerListLogic(UiLogic *uiLogic, QObject *parent):
QObject(parent),
m_uiLogic(uiLogic),
ServerListLogic::ServerListLogic(UiLogic *logic, QObject *parent):
PageLogicBase(logic, parent),
m_serverListModel{new ServersModel(this)}
{
@ -27,8 +23,8 @@ void ServerListLogic::onServerListPushbuttonDefaultClicked(int index)
void ServerListLogic::onServerListPushbuttonSettingsClicked(int index)
{
m_uiLogic->selectedServerIndex = index;
m_uiLogic->goToPage(Page::ServerSettings);
uiLogic()->selectedServerIndex = index;
uiLogic()->goToPage(Page::ServerSettings);
}
void ServerListLogic::updateServersListPage()