lunux client
This commit is contained in:
@@ -423,6 +423,9 @@ class MainScreen extends StatelessWidget {
|
||||
);
|
||||
|
||||
if (confirmed == true) {
|
||||
// 先优雅关闭客户端和挖矿进程,再退出程序
|
||||
final provider = Provider.of<ClientProvider>(context, listen: false);
|
||||
await provider.shutdown();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user