Ladybird: Reformat AppKit UI Swift files

This commit is contained in:
Andrew Kaster 2024-07-24 17:15:55 -06:00
parent 1bf4a225bd
commit cb7402bc69
Notes: github-actions[bot] 2024-07-31 00:39:26 +00:00
2 changed files with 68 additions and 70 deletions

View file

@ -31,9 +31,7 @@ public class TaskManager: NSWindow {
self.web_view = LadybirdWebView.init(nil) self.web_view = LadybirdWebView.init(nil)
super.init( super.init(contentRect: window_rect, styleMask: style_mask, backing: NSWindow.BackingStoreType.buffered, defer: false)
contentRect: window_rect, styleMask: style_mask, backing: NSWindow.BackingStoreType.buffered,
defer: false)
self.timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { [weak self] timer in self.timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { [weak self] timer in
if let strong_self = self { if let strong_self = self {
@ -58,7 +56,7 @@ public class TaskManager: NSWindow {
} }
func updateStatistics() { func updateStatistics() {
WebView.Application.the().update_process_statistics(); WebView.Application.the().update_process_statistics()
self.web_view.loadHTML(WebView.Application.the().generate_process_statistics_html().__bytes_as_string_viewUnsafe()); self.web_view.loadHTML(WebView.Application.the().generate_process_statistics_html().__bytes_as_string_viewUnsafe())
} }
} }