修改首次进入书记界面默认按钮为5个

This commit is contained in:
HapeLee
2025-08-30 01:36:46 +08:00
parent 7e26a158e7
commit 53fb8486cb
@@ -133,7 +133,9 @@ class ToolButtonConfigDialog : BaseBottomSheetDialogFragment(R.layout.dialog_too
val str = prefs.getString("tool_buttons", null)
return if (str.isNullOrBlank()) {
getAllButtonIds().map { ConfigEntry(it, true) }
getAllButtonIds().mapIndexed { index, id ->
ConfigEntry(id, index < 5)
}
} else {
val saved = str.split(";").mapNotNull {
val parts = it.split(",")