mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fixed navigation during initial installation
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#include "MobileUtils.h"
|
||||
|
||||
void MobileUtils::shareText(const QStringList&) {}
|
||||
|
||||
void MobileUtils::shareText(const QStringList &)
|
||||
{
|
||||
}
|
||||
|
||||
void MobileUtils::openFile()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -23,6 +23,28 @@ PageType {
|
||||
function onShowBusyIndicator(visible) {
|
||||
busyIndicator.visible = visible
|
||||
}
|
||||
|
||||
function onClosePage() {
|
||||
if (stackView.depth <= 1) {
|
||||
return
|
||||
}
|
||||
stackView.pop()
|
||||
}
|
||||
|
||||
function onGoToPage(page, slide) {
|
||||
var pagePath = PageController.getPagePath(page)
|
||||
if (slide) {
|
||||
stackView.push(pagePath, { "objectName" : pagePath }, StackView.PushTransition)
|
||||
} else {
|
||||
stackView.push(pagePath, { "objectName" : pagePath }, StackView.Immediate)
|
||||
}
|
||||
}
|
||||
|
||||
function onGoToStartPage() {
|
||||
while (stackView.depth > 1) {
|
||||
stackView.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
||||
Reference in New Issue
Block a user