From e2cde3f1d4540d9a31d55cedbb118fd81b40bb9e Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 8 Jun 2021 18:14:53 +0200 Subject: [PATCH] fix: adjust buttons size in the update view --- Stats/AppDelegate.swift | 1 - Stats/Views/Update.swift | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Stats/AppDelegate.swift b/Stats/AppDelegate.swift index bf795d48..07573135 100755 --- a/Stats/AppDelegate.swift +++ b/Stats/AppDelegate.swift @@ -49,7 +49,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele NotificationCenter.default.addObserver(self, selector: #selector(updateCron), name: .changeCronInterval, object: nil) modules.forEach{ $0.mount() } - self.settingsWindow.setModules() self.defaultValues() diff --git a/Stats/Views/Update.swift b/Stats/Views/Update.swift index 377fdefd..4c56a075 100644 --- a/Stats/Views/Update.swift +++ b/Stats/Views/Update.swift @@ -145,6 +145,7 @@ private class UpdateView: NSView { let buttons: NSStackView = NSStackView(frame: NSRect(x: 0, y: 0, width: view.frame.width, height: 26)) buttons.orientation = .horizontal buttons.spacing = 10 + buttons.distribution = .fillEqually buttons.addArrangedSubview(closeButton) buttons.addArrangedSubview(changelogButton)