desktop: fix rust build + bindings formatting
parent
1832eeffc9
commit
9564c1d6be
|
|
@ -1 +1,2 @@
|
||||||
sst-env.d.ts
|
sst-env.d.ts
|
||||||
|
desktop/src/bindings.ts
|
||||||
|
|
|
||||||
|
|
@ -569,6 +569,7 @@ fn setup_window_state_listener(app: &tauri::AppHandle, window: &tauri::WebviewWi
|
||||||
let (tx, mut rx) = mpsc::channel::<()>(1);
|
let (tx, mut rx) = mpsc::channel::<()>(1);
|
||||||
|
|
||||||
window.on_window_event(move |event| {
|
window.on_window_event(move |event| {
|
||||||
|
use tauri::WindowEvent;
|
||||||
if !matches!(event, WindowEvent::Moved(_) | WindowEvent::Resized(_)) {
|
if !matches!(event, WindowEvent::Moved(_) | WindowEvent::Resized(_)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
||||||
|
|
||||||
import { invoke as __TAURI_INVOKE, Channel } from "@tauri-apps/api/core"
|
import { invoke as __TAURI_INVOKE, Channel } from '@tauri-apps/api/core';
|
||||||
|
|
||||||
/** Commands */
|
/** Commands */
|
||||||
export const commands = {
|
export const commands = {
|
||||||
|
|
@ -10,10 +10,11 @@ export const commands = {
|
||||||
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
||||||
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
||||||
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
||||||
}
|
};
|
||||||
|
|
||||||
/* Types */
|
/* Types */
|
||||||
export type ServerReadyData = {
|
export type ServerReadyData = {
|
||||||
url: string
|
url: string,
|
||||||
password: string | null
|
password: string | null,
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue