diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_sync.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 208b869..2ed4cf7 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -45,10 +45,10 @@ bool sync(const QStringList &args, State &state) | |||
45 | } | 45 | } |
46 | 46 | ||
47 | QTimer::singleShot(0, [query, state]() { | 47 | QTimer::singleShot(0, [query, state]() { |
48 | Sink::Store::synchronize(query).then<void>([state]() { | 48 | Sink::Store::synchronize(query).syncThen<void>([state]() { |
49 | state.printLine("Synchronization complete!"); | 49 | state.printLine("Synchronization complete!"); |
50 | state.commandFinished(); | 50 | state.commandFinished(); |
51 | }).exec(); | 51 | }).exec(); |
52 | }); | 52 | }); |
53 | 53 | ||
54 | return true; | 54 | return true; |