Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Apr 5, 2024
1 parent 444d372 commit cb03210
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
2 changes: 0 additions & 2 deletions app/inpututils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2164,8 +2164,6 @@ void InputUtils::openLink( const QString &homePath, const QString &link )
qDebug() << "openLink android";
mAndroidUtils->showPDF( absoluteLinkPath );
#elif defined(Q_OS_IOS)
// Assuming mIOSUtils is the utility class for iOS, similar to mAndroidUtils for Android
//mIOSUtils->openDocument(absoluteLinkPath);
qDebug() << "openLink IOS" << homePath;
#endif

Expand Down
2 changes: 0 additions & 2 deletions app/inpututils.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,6 @@ class InputUtils: public QObject
//! Returns icon url from QgsWkbType geometry
static QUrl iconFromGeometry( const Qgis::GeometryType &geometry );

static QString getAbsoluteProjectPath( const QString &projectLink );

AndroidUtils *mAndroidUtils = nullptr; // not owned
};

Expand Down
20 changes: 7 additions & 13 deletions app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ ApplicationWindow {
text: qsTr("Sync")
iconSource: __style.syncIcon
onClicked: {
//__activeProject.requestSync()
__androidUtils.showPDF( "https://www.orimi.com/pdf-test.pdf" )
__activeProject.requestSync()
}
}

Expand Down Expand Up @@ -682,23 +681,14 @@ ApplicationWindow {
usedData: __merginApi.workspaceInfo.storageLimit > 0 ? __merginApi.workspaceInfo.diskUsage / __merginApi.workspaceInfo.storageLimit : 0
apiSupportsSubscription: __merginApi.apiSupportsSubscriptions

onManageAccountClicked: {
if (__merginApi.apiSupportsSubscriptions) {
projectController.manageSubscriptionPlans()
}
}
onManageAccountClicked: Qt.openUrlExternally(__inputHelp.merginSubscriptionLink)
}

MMProjectLimitDialog {
id: projectLimitDialog

apiSupportsSubscription: __merginApi.apiSupportsSubscriptions

onManageAccountClicked: {
if (__merginApi.apiSupportsSubscriptions) {
projectController.manageSubscriptionPlans()
}
}
onManageAccountClicked: Qt.openUrlExternally(__inputHelp.merginSubscriptionLink)
}

MMProjErrorDialog {
Expand Down Expand Up @@ -920,6 +910,10 @@ ApplicationWindow {
projectIssuesPage.projectLoadingLog = __activeProject.projectLoadingLog();
projectIssuesPage.visible = true;
}
function onShowSwitchWorkspaceActionClicked() {
stateManager.state = "projects"
projectController.showSelectWorkspacePage()
}
}

Connections {
Expand Down
3 changes: 0 additions & 3 deletions core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2953,9 +2953,6 @@ bool MerginApi::hasLocalChanges(

for ( const MerginFile &localFile : localFiles )
{
QFileInfo info( localFile.path );
qDebug() << "HERE" << localFile.path << info.absoluteFilePath();

QString filePath = localFile.path;
bool hasOldServer = oldServerFilesMap.contains( localFile.path );

Expand Down

0 comments on commit cb03210

Please sign in to comment.