Skip to content

Commit

Permalink
Simplify error and signal
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Nov 14, 2024
1 parent a0e7157 commit 038fbfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ ApplicationWindow {
// just banner that we will try again
__notificationModel.addInfo( qsTr( "Somebody else is syncing, we will try again later" ) )
}
else if ( errorType === MM.SyncError.MonthlyContributorsLimitHit){
monthlyContributorsLimitDialog.open()
}
else
{
syncFailedDialog.detailedText = qsTr( "Details" ) + ": " + errorMessage
Expand All @@ -882,10 +885,6 @@ ApplicationWindow {
}
}
}

function onMonthlyContributorsLimitReached( uploadSize ) {
monthlyContributorsLimitDialog.open()
}
}

Connections {
Expand Down
4 changes: 0 additions & 4 deletions app/synchronizationmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,6 @@ void SynchronizationManager::onProjectSyncFailure(
}
else
{
if ( error == SynchronizationError::MonthlyContributorsLimitHit )
{
emit monthlyContributorsLimitReached( "" );
}
mSyncProcesses.remove( projectFullName );
emit syncFinished( projectFullName, false, -1, false );

Expand Down
1 change: 0 additions & 1 deletion app/synchronizationmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class SynchronizationManager : public QObject
void syncFinished( const QString &projectFullName, bool success, int newVersion, bool reloadNeeded );

void syncError( const QString &projectFullName, int errorType, bool willRetry = false, const QString &errorMessage = QLatin1String() );
void monthlyContributorsLimitReached( const QString &message );

public slots:

Expand Down

1 comment on commit 038fbfa

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.11.694111 just submitted!

Please sign in to comment.