refactor(menubar): 将进程路径移至末列

This commit is contained in:
2026-11-09 00:18:20 +08:00
parent 1afe82b233
commit 7b3abe37c5
9 changed files with 37 additions and 11 deletions
@@ -25,7 +25,7 @@ import SwiftUI
table.usesAlternatingRowBackgroundColors = true; table.backgroundColor = .clear
table.allowsMultipleSelection = false; table.allowsEmptySelection = true
table.columnAutoresizingStyle = .sequentialColumnAutoresizingStyle
for (key, width) in [("pid", 48.0), ("name", 140), ("path", 250), ("cpu", 65), ("memory", 85), ("power", 90), ("threads", 65)] {
for (key, width) in [("pid", 48.0), ("name", 140), ("cpu", 65), ("memory", 85), ("power", 90), ("threads", 65), ("path", 250)] {
let column = NSTableColumn(identifier: NSUserInterfaceItemIdentifier(key))
column.width = width
column.minWidth = key == "path" ? 150 : key == "name" ? 90 : width