Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fast-down-gui"
version = "0.1.37"
version = "0.1.38"
edition = "2024"
license = "MIT"
authors = ["share121 <2854631158@qq.com>"]
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ async fn main() -> color_eyre::Result<()> {
{
let _ = auto.enable().log_err("启用开机自启失败");
}
let args: Vec<_> = std::env::args().collect();

let entries = db.inner.data.iter().map(|e| e.to_entry_data(*e.key()));
let list_model = Rc::new(VecModel::from_iter(entries));
Expand Down Expand Up @@ -299,7 +300,9 @@ async fn main() -> color_eyre::Result<()> {
let _ = open::that(DB_DIR.as_os_str()).log_err("打开日志文件夹失败");
});

ui.show()?;
if args.iter().all(|s| s != "--hidden") {
ui.show()?;
}
slint::run_event_loop_until_quit()?;
Ok(())
}
Expand Down