-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2019-2023 by Stefan Kebekus * | ||
* Copyright (C) 2019-2025 by Stefan Kebekus * | ||
* [email protected] * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -32,6 +32,7 @@ Page { | |
required property var dialogLoader | ||
required property var stackView | ||
property bool isIos: Qt.platform.os === "ios" | ||
property bool isAndroid: Qt.platform.os === "android" | ||
|
||
title: qsTr("Map and Data Library") | ||
|
||
|
@@ -234,6 +235,8 @@ Page { | |
text: qsTr("Locate your file in the browser, then select 'Open with' from the share menu, and choose Enroute"), | ||
standardButtons: Dialog.Ok}) | ||
Global.dialogLoader.active = true | ||
} else if (isAndroid) { | ||
FileExchange.openFilePicker("") | ||
} else { | ||
importFileDialog.open() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2019-2024 by Stefan Kebekus * | ||
* Copyright (C) 2019-2025 by Stefan Kebekus * | ||
* [email protected] * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -268,7 +268,6 @@ Page { | |
standardButtons: Dialog.Ok}) | ||
Global.dialogLoader.active = true | ||
} else if (isAndroid) { | ||
console.log("AA") | ||
FileExchange.openFilePicker("") | ||
} else { | ||
importFileDialog.open() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2019-2024 by Stefan Kebekus * | ||
* Copyright (C) 2019-2025 by Stefan Kebekus * | ||
* [email protected] * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -98,7 +98,18 @@ Page { | |
onTriggered: { | ||
PlatformAdaptor.vibrateBrief() | ||
highlighted = false | ||
importFileDialog.open() | ||
if (isIos) { | ||
Global.dialogLoader.active = false | ||
Global.dialogLoader.setSource("../dialogs/LongTextDialog.qml", { | ||
title: qsTr("Import files"), | ||
text: qsTr("Locate your file in the browser, then select 'Open with' from the share menu, and choose Enroute"), | ||
standardButtons: Dialog.Ok}) | ||
Global.dialogLoader.active = true | ||
} else if (isAndroid) { | ||
FileExchange.openFilePicker("") | ||
} else { | ||
importFileDialog.open() | ||
} | ||
} | ||
|
||
FileDialog { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2022-2023 by Stefan Kebekus * | ||
* Copyright (C) 2022-2025 by Stefan Kebekus * | ||
* [email protected] * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -106,6 +106,8 @@ Page { | |
text: qsTr("Locate your file in the browser, then select 'Open with' from the share menu, and choose Enroute"), | ||
standardButtons: Dialog.Ok}) | ||
Global.dialogLoader.active = true | ||
} else if (isAndroid) { | ||
FileExchange.openFilePicker("") | ||
} else { | ||
importFileDialog.open() | ||
} | ||
|