feat: 退出登录关闭闪连功能
This commit is contained in:
parent
bfa67e8a73
commit
2ea6cd2379
@ -23,6 +23,7 @@ import 'package:kaer_with_panels/app/widgets/kr_subscription_expiry_text.dart';
|
||||
import 'package:kaer_with_panels/singbox/model/singbox_status.dart';
|
||||
import 'package:kaer_with_panels/app/services/singbox_imp/kr_sing_box_imp.dart';
|
||||
import 'package:kaer_with_panels/app/utils/kr_log_util.dart';
|
||||
import 'package:kaer_with_panels/app/utils/kr_secure_storage.dart';
|
||||
|
||||
class HIUserInfoView extends GetView<HIUserInfoController> {
|
||||
const HIUserInfoView({super.key});
|
||||
@ -321,6 +322,8 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
|
||||
confirmText: '返回',
|
||||
onCancel: () async {
|
||||
// 如果删的是当前设备,应该先关闭vpn的连接
|
||||
await KRSecureStorage()
|
||||
.kr_deleteData(key: 'kr_quick_connect_enabled');
|
||||
await _stopVpnIfRunning();
|
||||
final currentDevice =
|
||||
controller.devices.firstWhere(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user