mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-18 21:36:56 -04:00
Fix webkit reload (#534)
* wrap WKWebView in UnsafePointer * formatting * more formatting
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import WebKit
|
||||
|
||||
@_cdecl("reload_webview")
|
||||
public func reloadWebview(webview: WKWebView) -> () {
|
||||
public func reloadWebview(webviewPtr: UnsafePointer<WKWebView>) -> () {
|
||||
let webview = webviewPtr.pointee;
|
||||
webview.window!.orderOut(webview);
|
||||
webview.reload();
|
||||
webview.window!.makeKey();
|
||||
|
||||
@@ -67,7 +67,7 @@ interface DatabaseViewProps {
|
||||
const TABS = ['File Paths', 'Objects', 'Tags', 'Operations'];
|
||||
|
||||
function DatabaseView(props: DatabaseViewProps) {
|
||||
const [currentTab, setCurrentTab] = useState<typeof TABS[number]>('Operations');
|
||||
const [currentTab, setCurrentTab] = useState<(typeof TABS)[number]>('Operations');
|
||||
|
||||
const pullOperations = rspc.useMutation('pullOperations');
|
||||
|
||||
|
||||
@@ -89,6 +89,6 @@ const columns = ensureIsColumns([
|
||||
{ column: 'Type', key: 'extension', width: 100 } as const
|
||||
]);
|
||||
|
||||
type ColumnKey = typeof columns[number]['key'];
|
||||
type ColumnKey = (typeof columns)[number]['key'];
|
||||
|
||||
export default FileRow;
|
||||
|
||||
Reference in New Issue
Block a user