From 362dcdf2880679e896278e07d33498fd643e9f14 Mon Sep 17 00:00:00 2001 From: lollipopkit Date: Sun, 21 Jan 2024 17:45:01 +0800 Subject: [PATCH] opt.: server status update interval --- lib/view/page/setting/entry.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/view/page/setting/entry.dart b/lib/view/page/setting/entry.dart index 871c5ff2..e30ef3ff 100644 --- a/lib/view/page/setting/entry.dart +++ b/lib/view/page/setting/entry.dart @@ -140,7 +140,6 @@ class _SettingPageState extends State { body: ListView( padding: const EdgeInsets.symmetric(horizontal: 17), children: [ - /// TODO: Remember add new items in front of the each list, so the user can easily find the new items _buildTitle('App'), _buildApp(), _buildTitle(l10n.server), @@ -271,10 +270,12 @@ class _SettingPageState extends State { 10, (index) => PopupMenuItem( value: index, - child: Text('$index ${l10n.second}'), + child: Text(index == 0 ? l10n.manual : '$index ${l10n.second}'), ), growable: false, ).toList(); + // 1 second is too fast, so remove it + items.removeAt(1); return ListTile( title: Text(