mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
QML ServerContainers page refact
This commit is contained in:
@@ -116,10 +116,16 @@ int main(int argc, char *argv[])
|
||||
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
|
||||
qRegisterMetaType<amnezia::DockerContainer>("amnezia::DockerContainer");
|
||||
qRegisterMetaType<amnezia::Protocol>("amnezia::Protocol");
|
||||
|
||||
UiLogic *uiLogic = new UiLogic;
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
PageEnumNS::declareQML();
|
||||
declareQmlProtocolEnum();
|
||||
|
||||
const QUrl url(QStringLiteral("qrc:/ui/qml/main.qml"));
|
||||
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
||||
&app, [url](QObject *obj, const QUrl &objUrl) {
|
||||
|
||||
Reference in New Issue
Block a user