mirror of
https://github.com/lencx/ChatGPT.git
synced 2026-02-06 11:26:59 +00:00
17 lines
403 B
Rust
17 lines
403 B
Rust
use tauri::Manager;
|
|
|
|
#[tauri::command]
|
|
pub fn drag_window(app: tauri::AppHandle) {
|
|
app.get_window("core").unwrap().start_dragging().unwrap();
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub fn fullscreen(app: tauri::AppHandle) {
|
|
let win = app.get_window("core").unwrap();
|
|
if win.is_fullscreen().unwrap() {
|
|
win.set_fullscreen(false).unwrap();
|
|
} else {
|
|
win.set_fullscreen(true).unwrap();
|
|
}
|
|
}
|