new: github actions

This commit is contained in:
lollipopkit
2024-05-25 19:29:18 +08:00
parent ee5f4d10ea
commit ccab4040b1
12 changed files with 138 additions and 336 deletions

View File

@@ -70,8 +70,8 @@ class BackupPage extends StatelessWidget {
/// Issue #188
switch (Pfs.type) {
case Pfs.windows:
final backslashPath = path.replaceAll('/', '\\');
await Process.run('explorer', ['/select,$backslashPath']);
final backslashPath = path.replaceAll('/', '\\');
await Process.run('explorer', ['/select,$backslashPath']);
case Pfs.linux:
await Process.run('xdg-open', [path]);
default:

View File

@@ -25,7 +25,9 @@ final class _AppBar extends CustomAppBar {
return ValBuilder(
listenable: selectIndex,
builder: (idx) {
if (idx == AppTab.ssh.index && !isWindows && !isLinux) return placeholder;
if (idx == AppTab.ssh.index && !isWindows && !isLinux) {
return placeholder;
}
return super.build(context);
},
);