fix: dont set window on top when second instance is started

This commit is contained in:
HorizonCode 2025-07-15 20:28:04 +02:00
parent c395662134
commit 409c8b0b04
4 changed files with 3 additions and 6 deletions

2
src-tauri/Cargo.lock generated
View File

@ -1094,7 +1094,7 @@ dependencies = [
[[package]] [[package]]
name = "ezpplauncher" name = "ezpplauncher"
version = "3.0.0-beta.5" version = "3.0.0"
dependencies = [ dependencies = [
"discord-rich-presence", "discord-rich-presence",
"hardware-id", "hardware-id",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ezpplauncher" name = "ezpplauncher"
version = "3.0.0-beta.5" version = "3.0.0"
description = "EZPPLauncher redefined." description = "EZPPLauncher redefined."
authors = ["HorizonCode"] authors = ["HorizonCode"]
edition = "2024" edition = "2024"

View File

@ -27,9 +27,6 @@ pub fn run() {
{ {
builder = builder.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| { builder = builder.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
let app_window = app.get_webview_window("main").expect("no main window"); let app_window = app.get_webview_window("main").expect("no main window");
app_window
.set_always_on_top(true)
.expect("failed to set always on top");
app_window.set_focus().expect("failed to focus"); app_window.set_focus().expect("failed to focus");
})); }));
} }

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "ezpplauncher", "productName": "ezpplauncher",
"version": "3.0.0-beta.5", "version": "3.0.0",
"identifier": "farm.ezpp.launcher", "identifier": "farm.ezpp.launcher",
"build": { "build": {
"beforeDevCommand": "bun run vite:dev", "beforeDevCommand": "bun run vite:dev",