fix: remove unnecessary/wrong layout code

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-03-10 14:00:37 +09:00
1 parent 1bb4d2a1c8
commit 9e719e6984
3 files changed
-11

No files matched your search

-9
View File
@@ -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