From fd1d26e525300e28e56f2a51a8394ee98786fe95 Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Wed, 22 May 2024 17:05:37 -0300 Subject: [PATCH] code cleanup and layout adjust --- app/synchronizationmanager.cpp | 20 +++++--------------- app/synchronizationmanager.h | 2 +- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/app/synchronizationmanager.cpp b/app/synchronizationmanager.cpp index 8439fe85a..d1e224f95 100644 --- a/app/synchronizationmanager.cpp +++ b/app/synchronizationmanager.cpp @@ -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( diff --git a/app/synchronizationmanager.h b/app/synchronizationmanager.h index 5b46d0442..ba3d02448 100644 --- a/app/synchronizationmanager.h +++ b/app/synchronizationmanager.h @@ -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: