Skip to content

Commit

Permalink
code cleanup and layout adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed May 22, 2024
1 parent 2078927 commit fd1d26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions app/synchronizationmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,12 @@ void SynchronizationManager::onProjectSyncProgressChanged( const QString &projec

}

void SynchronizationManager::onProjectCreated(const QString &projectFullName, bool result)
void SynchronizationManager::onProjectCreated( const QString &projectFullName, bool result )
{
if (!result)
{
qDebug() << "Project creation result is false for:" << projectFullName; // Debug statement
//qDebug() << "mSyncProcesses" << mSyncProcesses;
if (mSyncProcesses.contains(projectFullName))
{
qDebug() << "Removing project from sync processes:" << projectFullName; // Debug statement
mSyncProcesses.remove(projectFullName);
}
}
else
{
qDebug() << "Project creation result is true for:" << projectFullName; // Debug statement
}
if ( !result && mSyncProcesses.contains( projectFullName ) )
{
mSyncProcesses.remove( projectFullName );
}
}

void SynchronizationManager::onProjectSyncFailure(
Expand Down
2 changes: 1 addition & 1 deletion app/synchronizationmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SynchronizationManager : public QObject
void onProjectSyncFailure( const QString &message, const QString &topic, int httpCode, const QString &projectFullName );
void onProjectAttachedToMergin( const QString &projectFullName, const QString &previousName );
void onProjectReloadNeededAfterSync( const QString &projectFullName );
void onProjectCreated(const QString &projectName, bool result);
void onProjectCreated( const QString &projectName, bool result );

private:

Expand Down

1 comment on commit fd1d26e

@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.5.622911 just submitted!

Please sign in to comment.