fix: remove unnecessary/wrong layout code
This commit is contained in:
1 parent
1bb4d2a1c8
commit
9e719e6984
3 files changed
-11
No files matched your search
@@ -99,15 +99,6 @@ extension NSView {
|
||||
}
|
||||
}
|
||||
|
||||
extension NSGridView {
|
||||
// set height for all rows
|
||||
func setRowsHeight(_ height: CGFloat) {
|
||||
for i in 0..<numberOfRows {
|
||||
row(at: i).height = height
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Array {
|
||||
// forEach with each iteration run concurrently on the global queue
|
||||
func forEachAsync(fn: @escaping (Element) -> Void) {
|
||||
|
||||
@@ -22,7 +22,6 @@ class AppearanceTab {
|
||||
])
|
||||
view.column(at: 0).xPlacement = .trailing
|
||||
view.rowAlignment = .lastBaseline
|
||||
view.setRowsHeight(rowHeight)
|
||||
view.fit()
|
||||
return view
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ class GeneralTab {
|
||||
])
|
||||
view.column(at: 0).xPlacement = .trailing
|
||||
view.rowAlignment = .lastBaseline
|
||||
view.setRowsHeight(rowHeight)
|
||||
view.fit()
|
||||
setLoginItemIfCheckboxIsOn(startAtLogin[1] as! NSButton)
|
||||
return view
|
||||
|
||||
Reference in new issue
Block a user