Skip to content

Commit

Permalink
Fix rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
Heran Yang committed Aug 12, 2024
1 parent 1af9897 commit db13b64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/seadrive-gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void SeadriveGui::onDaemonStarted()
message_pollers_.insert(EMPTY_DOMAIN_ID, message_poller);
}
#if defined(Q_OS_WIN32) || defined(Q_OS_LINUX)
rpc_client_->connectDaemon();
rpc_client->connectDaemon();
#endif

auto accounts = account_mgr_->activeAccounts();
Expand Down
2 changes: 1 addition & 1 deletion src/ui/transfer-progress-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ TransferItemsTableModel::TransferItemsTableModel(QObject* parent)

}

#if defined(Q_OS_WIN32)
#if defined(Q_OS_WIN32) || defined(Q_OS_LINUX)
void TransferItemsTableModel::setTransferItems()
{
TransferProgress transfer_progress;
Expand Down
4 changes: 4 additions & 0 deletions src/ui/tray-icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,12 @@ void SeafileTrayIcon::deleteAccount()

SeafileRpcClient *rpc_client = gui->rpcClient(account.domainID());

#ifndef Q_OS_LINUX
if (rpc_client && rpc_client->isAccountUploading(account)) {
gui->warningBox(tr("There are changes being uploaded under the account, please try again later"));
return;
}
#endif

#if defined(Q_OS_WIN32) || defined(Q_OS_LINUX)
QString question = tr("Are you sure to remove account from \"%1\"?").arg(account.serverUrl.toString());
Expand All @@ -699,11 +701,13 @@ void SeafileTrayIcon::resyncAccount()
return;
}

#ifndef Q_OS_LINUX
bool is_uploading = rpc_client->isAccountUploading (account);
if (is_uploading) {
gui->warningBox (tr("There are changes being uploaded under the account, please try again later"));
return;
}
#endif

QString question = tr("The account will be synced to a new sync root folder. Are you sure to resync account from \"%1\"?").arg(account.serverUrl.toString());

Expand Down

0 comments on commit db13b64

Please sign in to comment.