mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 14:53:21 +03:00
refact: replace some option keys (#8090)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -384,9 +384,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
||||
tabController.clear();
|
||||
return true;
|
||||
} else {
|
||||
final opt = "enable-confirm-closing-tabs";
|
||||
final bool res;
|
||||
if (!option2bool(opt, bind.mainGetLocalOption(key: opt))) {
|
||||
if (!option2bool(kOptionEnableConfirmClosingTabs,
|
||||
bind.mainGetLocalOption(key: kOptionEnableConfirmClosingTabs))) {
|
||||
res = true;
|
||||
} else {
|
||||
res = await closeConfirmDialog();
|
||||
|
||||
Reference in New Issue
Block a user