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(
|
ConfirmDialog(
|
||||||
visible = uiState.showExitConfirmDialog,
|
visible = uiState.showExitConfirmDialog,
|
||||||
|
|
@ -267,3 +266,4 @@ fun TodoEditorPage(
|
||||||
onDismiss = { uiState.showDeleteConfirmDialog = false }
|
onDismiss = { uiState.showDeleteConfirmDialog = false }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
@ -211,8 +211,6 @@ fun MainPage(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ConfirmDialog(
|
ConfirmDialog(
|
||||||
visible = showDeleteConfirmDialog,
|
visible = showDeleteConfirmDialog,
|
||||||
icon = Icons.Outlined.Delete,
|
icon = Icons.Outlined.Delete,
|
||||||
|
|
@ -221,3 +219,4 @@ fun MainPage(
|
||||||
onDismiss = { showDeleteConfirmDialog = false }
|
onDismiss = { showDeleteConfirmDialog = false }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
@ -147,8 +147,6 @@ fun SettingsData(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ConfirmDialog(
|
ConfirmDialog(
|
||||||
visible = showRestoreDialog,
|
visible = showRestoreDialog,
|
||||||
icon = Icons.Outlined.RestartAlt,
|
icon = Icons.Outlined.RestartAlt,
|
||||||
|
|
@ -160,6 +158,7 @@ fun SettingsData(
|
||||||
properties = DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false)
|
properties = DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重启应用
|
* 重启应用
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,6 @@ fun SettingsDataCategory(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
CategoryPromptDialog(
|
CategoryPromptDialog(
|
||||||
visible = showDialog,
|
visible = showDialog,
|
||||||
|
|
@ -130,3 +129,4 @@ fun SettingsDataCategory(
|
||||||
onDismiss = { showDialog = false }
|
onDismiss = { showDialog = false }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue