perf: 重组性能优化

This commit is contained in:
Super12138 2025-07-04 11:01:08 +08:00
parent 88d4132c99
commit 34b316120a
4 changed files with 57 additions and 59 deletions

View file

@ -246,7 +246,6 @@ fun TodoEditorPage(
}
}
}
}
ConfirmDialog(
visible = uiState.showExitConfirmDialog,
@ -267,3 +266,4 @@ fun TodoEditorPage(
onDismiss = { uiState.showDeleteConfirmDialog = false }
)
}
}

View file

@ -211,8 +211,6 @@ fun MainPage(
)
}
}
}
ConfirmDialog(
visible = showDeleteConfirmDialog,
icon = Icons.Outlined.Delete,
@ -221,3 +219,4 @@ fun MainPage(
onDismiss = { showDeleteConfirmDialog = false }
)
}
}

View file

@ -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)
)
}
}
/**
* 重启应用

View file

@ -106,7 +106,6 @@ fun SettingsDataCategory(
}
}
}
}
CategoryPromptDialog(
visible = showDialog,
@ -130,3 +129,4 @@ fun SettingsDataCategory(
onDismiss = { showDialog = false }
)
}
}