refactor(menubar): 将进程路径移至末列
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user