remove: overlay, will be planned for future update tho

This commit is contained in:
2025-07-08 09:20:43 +02:00
parent f5831b377c
commit 57a95b4759
5 changed files with 9 additions and 48 deletions

View File

@@ -6,7 +6,6 @@ use std::path::PathBuf;
use sysinfo::System;
use tauri::AppHandle;
use tauri::Emitter;
use tauri::Manager;
use tokio::fs;
use tokio::io::AsyncWriteExt;
use tokio::process::Command;
@@ -641,43 +640,6 @@ pub fn get_platform() -> String {
std::env::consts::OS.to_string()
}
#[tauri::command]
pub fn show_overlay(app: tauri::AppHandle) -> Result<(), String> {
if !app.webview_windows().contains_key("overlay") {
tauri::WebviewWindowBuilder::new(
&app,
"overlay",
tauri::WebviewUrl::App("/overlay".into()),
)
.always_on_top(true)
.transparent(true)
.decorations(false)
.resizable(false)
.minimizable(false)
.fullscreen(true)
.skip_taskbar(true)
.visible(true)
.center()
.build()
.map_err(|e| e.to_string())?;
} else if let Some(overlay) = app.get_webview_window("overlay") {
overlay.show().map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command]
pub fn hide_overlay(app: tauri::AppHandle) -> Result<(), String> {
if app.webview_windows().contains_key("overlay")
&& let Some(overlay) = app.get_webview_window("overlay")
{
overlay.show().map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command]
pub async fn check_for_corruption(folder: String) -> Result<bool, String> {
let osu_path = PathBuf::from(folder);