new & opt.

- new: support suspend and WOL #172
- opt.: `execWithPwd` when cancel
- opt.: extentions
This commit is contained in:
lollipopkit
2023-09-25 18:51:14 +08:00
parent df84aeb8b2
commit 4d06a52e99
45 changed files with 251 additions and 176 deletions

View File

@@ -95,7 +95,7 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage> {
actions: [
TextButton(
onPressed: () {
Providers.key.delete(widget.pki!);
Pros.key.delete(widget.pki!);
context.pop();
context.pop();
},
@@ -135,9 +135,9 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage> {
final decrypted = await compute(decyptPem, [key, pwd]);
final pki = PrivateKeyInfo(id: name, key: decrypted);
if (widget.pki != null) {
Providers.key.update(widget.pki!, pki);
Pros.key.update(widget.pki!, pki);
} else {
Providers.key.add(pki);
Pros.key.add(pki);
}
} catch (e) {
context.showSnackBar(e.toString());