优化 Gitea 并行构建、重试与 Windows 更新发布 #5
@@ -126,9 +126,10 @@ void main() {
|
||||
.closeSource();
|
||||
}
|
||||
await access.dispose();
|
||||
// UI/provider disposal owns the project; allow its async cleanup to finish.
|
||||
// Provider disposal starts async cleanup without waiting for it. Close the
|
||||
// workspace explicitly before deleting files, especially on Windows.
|
||||
await container.read(projectsProvider.notifier).prepareToQuit();
|
||||
container.dispose();
|
||||
await Future<void>.delayed(const Duration(milliseconds: 50));
|
||||
await root.delete(recursive: true);
|
||||
messenger.setMockMethodCallHandler(native, null);
|
||||
messenger.setMockMethodCallHandler(events, null);
|
||||
|
||||
Reference in new issue
Block a user