perf: 重组性能优化
This commit is contained in:
parent
88d4132c99
commit
34b316120a
4 changed files with 57 additions and 59 deletions
|
|
@ -246,7 +246,6 @@ fun TodoEditorPage(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ConfirmDialog(
|
||||
visible = uiState.showExitConfirmDialog,
|
||||
|
|
@ -267,3 +266,4 @@ fun TodoEditorPage(
|
|||
onDismiss = { uiState.showDeleteConfirmDialog = false }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -211,8 +211,6 @@ fun MainPage(
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ConfirmDialog(
|
||||
visible = showDeleteConfirmDialog,
|
||||
icon = Icons.Outlined.Delete,
|
||||
|
|
@ -221,3 +219,4 @@ fun MainPage(
|
|||
onDismiss = { showDeleteConfirmDialog = false }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -147,8 +147,6 @@ fun SettingsData(
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ConfirmDialog(
|
||||
visible = showRestoreDialog,
|
||||
icon = Icons.Outlined.RestartAlt,
|
||||
|
|
@ -160,6 +158,7 @@ fun SettingsData(
|
|||
properties = DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 重启应用
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ fun SettingsDataCategory(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CategoryPromptDialog(
|
||||
visible = showDialog,
|
||||
|
|
@ -130,3 +129,4 @@ fun SettingsDataCategory(
|
|||
onDismiss = { showDialog = false }
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue