Lollipopkit/issue382 (#383)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-06-10 21:34:56 +08:00
committed by GitHub
parent edceb5900e
commit 22c43c7124
20 changed files with 208 additions and 41 deletions

View File

@@ -126,7 +126,7 @@ void _onTapMoreBtns(
if (snippets == null || snippets.isEmpty) return;
final snippet = snippets.firstOrNull;
if (snippet == null) return;
final fmted = snippet.fmtWith(spi);
final fmted = snippet.fmtWithSpi(spi);
final sure = await context.showRoundDialog<bool>(
title: l10n.attention,
child: SingleChildScrollView(
@@ -141,7 +141,7 @@ void _onTapMoreBtns(
],
);
if (sure != true) return;
AppRoutes.ssh(spi: spi, initCmd: fmted).checkGo(
AppRoutes.ssh(spi: spi, initSnippet: snippet).checkGo(
context: context,
check: () => _checkClient(context, spi.id),
);