mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Reformat AppKit UI Swift files
This commit is contained in:
parent
1bf4a225bd
commit
cb7402bc69
Notes:
github-actions[bot]
2024-07-31 00:39:26 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/cb7402bc695 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/821
2 changed files with 68 additions and 70 deletions
|
@ -31,9 +31,7 @@ public class TaskManager: NSWindow {
|
|||
|
||||
self.web_view = LadybirdWebView.init(nil)
|
||||
|
||||
super.init(
|
||||
contentRect: window_rect, styleMask: style_mask, backing: NSWindow.BackingStoreType.buffered,
|
||||
defer: false)
|
||||
super.init(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
|
||||
if let strong_self = self {
|
||||
|
@ -58,7 +56,7 @@ public class TaskManager: NSWindow {
|
|||
}
|
||||
|
||||
func updateStatistics() {
|
||||
WebView.Application.the().update_process_statistics();
|
||||
self.web_view.loadHTML(WebView.Application.the().generate_process_statistics_html().__bytes_as_string_viewUnsafe());
|
||||
WebView.Application.the().update_process_statistics()
|
||||
self.web_view.loadHTML(WebView.Application.the().generate_process_statistics_html().__bytes_as_string_viewUnsafe())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue