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

@@ -298,7 +298,7 @@ class _SettingPageState extends State<SettingPage> {
onSelected: (int val) {
_updateInterval.value = val;
_setting.serverStatusUpdateInterval.put(val);
Providers.server.startAutoRefresh();
Pros.server.startAutoRefresh();
if (val == 0) {
context.showSnackBar(l10n.updateIntervalEqual0);
}
@@ -883,7 +883,7 @@ class _SettingPageState extends State<SettingPage> {
child: Text(l10n.sureDelete(e)),
actions: [
TextButton(
onPressed: () => Providers.server.delServer(e),
onPressed: () => Pros.server.delServer(e),
child: Text(l10n.ok),
)
],