Sync Avalonia management features and separate desktop instances
This commit is contained in:
1 parent
0a04d5990f
commit
8d3dbe296a
12 files changed
+157
-15
No files matched your search
@@ -22,6 +22,11 @@ class ManagerModel extends ChangeNotifier {
|
||||
List<Map<String, dynamic>> nodes = [];
|
||||
final List<String> logs = [];
|
||||
late final DailyLog diskLog;
|
||||
void clearLogs() {
|
||||
logs.clear();
|
||||
notice = '当前日志显示已清空,历史日志文件保留';
|
||||
notifyListeners();
|
||||
}
|
||||
Future<void> openLogDirectory() => action(() async {
|
||||
await diskLog.directory.create(recursive: true);
|
||||
final command = Platform.isWindows
|
||||
|
||||
@@ -870,6 +870,11 @@ class _ManagerViewState extends State<ManagerView> {
|
||||
icon: const Icon(Icons.copy, size: 16),
|
||||
label: const Text('复制日志'),
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: m.clearLogs,
|
||||
icon: const Icon(Icons.clear_all, size: 16),
|
||||
label: const Text('清空日志'),
|
||||
),
|
||||
],
|
||||
),
|
||||
Expanded(
|
||||
|
||||
Reference in new issue
Block a user