|
|
|
@ -25,7 +25,7 @@ Item {
@@ -25,7 +25,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
property bool _openForLoad: true |
|
|
|
|
property real _margins: ScreenTools.defaultFontPixelHeight / 2 |
|
|
|
|
property bool _mobile: ScreenTools.isMobile |
|
|
|
|
property bool _mobileDlg: QGroundControl.corePlugin.options.useMobileFileDialog |
|
|
|
|
property var _rgExtensions |
|
|
|
|
|
|
|
|
|
Component.onCompleted: { |
|
|
|
@ -39,7 +39,7 @@ Item {
@@ -39,7 +39,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
function openForLoad() { |
|
|
|
|
_openForLoad = true |
|
|
|
|
if (_mobile && folder.length !== 0) { |
|
|
|
|
if (_mobileDlg && folder.length !== 0) { |
|
|
|
|
qgcView.showDialog(mobileFileOpenDialog, title, qgcView.showDialogDefaultWidth, StandardButton.Cancel) |
|
|
|
|
} else { |
|
|
|
|
fullFileDialog.open() |
|
|
|
@ -48,7 +48,7 @@ Item {
@@ -48,7 +48,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
function openForSave() { |
|
|
|
|
_openForLoad = false |
|
|
|
|
if (_mobile && folder.length !== 0) { |
|
|
|
|
if (_mobileDlg && folder.length !== 0) { |
|
|
|
|
qgcView.showDialog(mobileFileSaveDialog, title, qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) |
|
|
|
|
} else { |
|
|
|
|
fullFileDialog.open() |
|
|
|
|