mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[DeckSync] Pass the sync summary through the signal and tidy the manager API
- Emit SyncSummary from syncFinished() instead of four positional ints, and build it from a single currentSummary() helper, so the counts cannot drift between the status message and the signal. - Use a designated initializer for LocalFile, like the other records. - Drop setClient() and setColorIdentityProvider(): both fields are already constructor parameters and the setters had no callers. setProfile() and setDeckPath() stay, since the tab re-reads them before every run. - Fix the include paths in tab_deck_storage.h and the narrowing conversion of the tree item id, so the branch builds again.
This commit is contained in:
parent
c0a62a2486
commit
ad0da98a86
4 changed files with 31 additions and 33 deletions
|
|
@ -8,8 +8,8 @@
|
|||
#ifndef TAB_DECK_STORAGE_H
|
||||
#define TAB_DECK_STORAGE_H
|
||||
|
||||
#include "../deck_sync/deck_sync_manager.h"
|
||||
#include "../interface/widgets/server/remote/remote_decklist_tree_widget.h"
|
||||
#include "../../deck_sync/deck_sync_manager.h"
|
||||
#include "../server/remote/remote_decklist_tree_widget.h"
|
||||
#include "tab.h"
|
||||
|
||||
#include <QList>
|
||||
|
|
@ -129,7 +129,7 @@ private slots:
|
|||
|
||||
void actSyncNow();
|
||||
void onSyncStatusMessage(const QString &message);
|
||||
void onSyncFinished(int uploaded, int downloaded, int unchanged, int skipped, const QString &error);
|
||||
void onSyncFinished(const SyncSummary &summary, const QString &error);
|
||||
|
||||
public:
|
||||
TabDeckStorage(TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User *currentUserInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue