There was an error while loading. Please reload this page.
1 parent dcde9bb commit e2c8aa8Copy full SHA for e2c8aa8
1 file changed
src/app/services/facade/remote-facade.service.ts
@@ -146,12 +146,17 @@ export class RemoteFacadeService extends TauriBaseService {
146
constructor() {
147
super();
148
149
+ // Primary trigger: engine ready event (fires after caches are populated)
150
+ this.eventListeners
151
+ .listenToRcloneEngineReady()
152
+ .pipe(takeUntilDestroyed())
153
+ .subscribe(() => void this.refreshAll());
154
+
155
+ // Secondary trigger: status changes (handles reconnection after disconnects)
156
effect(() => {
157
const status = this.statusService.rcloneStatus();
158
if (status === 'active') {
- untracked(() => {
- void this.refreshAll();
- });
159
+ untracked(() => void this.refreshAll());
160
}
161
});
162
0 commit comments