mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-21 18:17:05 +00:00
Migrate P2P UI and CLI transfers to service views
This commit is contained in:
@@ -111,6 +111,8 @@ export function useP2PReplicatorUI(
|
||||
const activeReplicator = replicator.replicator;
|
||||
if (!activeReplicator) return;
|
||||
const settings = host.services.setting.currentSettings();
|
||||
// The deprecated compatibility result only opens the ordinary UI; the
|
||||
// actual transfer runs through the stable targeted-transfer view.
|
||||
void host.services.replicator.runFiniteReplicationActivity(
|
||||
() => activeReplicator.openReplication(settings, false, true, false),
|
||||
{ label: "replication" }
|
||||
|
||||
Reference in New Issue
Block a user