Skip to content

Commit 61a6965

Browse files
committed
Forgot to commit version 1.4.1
1 parent 204ade2 commit 61a6965

File tree

8 files changed

+68
-125
lines changed

8 files changed

+68
-125
lines changed

Diff for: src-tauri/Cargo.lock

+61-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src-tauri/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "suptube"
3-
version = "1.4.0"
4-
description = "An unofficial client for YouTube"
3+
version = "1.4.1"
4+
description = "An opensource client for YouTube"
55
authors = ["Sandun Wiratunga"]
66
license = "MIT"
77
repository = "https://github.com/sandunwira/SupTube"
@@ -19,6 +19,7 @@ tauri-bundler = "1.1.2"
1919
serde = { version = "1.0", features = ["derive"] }
2020
tauri = { version = "1.2.4", features = ["shell-open", "updater", "window-set-fullscreen", "window-set-resizable"] }
2121
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
22+
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
2223

2324
[features]
2425
# by default Tauri runs in production mode

Diff for: src-tauri/src/main.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ struct Payload {
1414
fn main() {
1515
tauri::Builder::default()
1616
.setup(|app| {
17-
let splashscreen_window = app.get_window("splashscreen").unwrap();
1817
let main_window = app.get_window("main").unwrap();
1918

2019
// DISABLE RELOAD ======================================================================== //
@@ -48,20 +47,9 @@ fn main() {
4847

4948
// DISABLE RIGHT CLICK =================================================================== //
5049
main_window.eval("window.addEventListener('contextmenu', function(e) { e.preventDefault(); });").unwrap();
51-
52-
// WE PERFORM THE INITIALIZATION CODE ON A NEW TASK SO THE APP DOESN'T FREEZE ============ //
53-
tauri::async_runtime::spawn(async move {
54-
// INITIALIZE YOUR APP HERE INSTEAD OF SLEEPING :) ===================================== //
55-
println!("Initializing...");
56-
std::thread::sleep(std::time::Duration::from_secs(5));
57-
println!("Done initializing.");
58-
59-
// AFTER IT'S DONE, CLOSE THE SPLASHSCREEN AND DISPLAY THE MAIN WINDOW ================= //
60-
splashscreen_window.close().unwrap();
61-
main_window.show().unwrap();
62-
});
6350
Ok(())
6451
})
52+
.plugin(tauri_plugin_window_state::Builder::default().build())
6553
.plugin(tauri_plugin_single_instance::init(|app, argv, cwd| {
6654
println!("{}, {argv:?}, {cwd}", app.package_info().name);
6755
app.emit_all("single-instance", Payload { args: argv, cwd }).unwrap();

0 commit comments

Comments
 (0)