merge duplicate arms and drop a needless clone

This commit is contained in:
2026-09-21 01:32:20 +03:00
parent 3f50fdd337
commit e6e07ca6a1
3 changed files with 26 additions and 23 deletions
+3 -1
View File
@@ -2126,7 +2126,9 @@ pub fn run() {
let cfg = lock(&st.config).clone();
(cfg.updates.check_on_launch, cfg)
};
drop(register_hotkeys(app.handle(), &cfg));
// Result is not Drop, so the old drop() here did nothing beyond
// extending its lifetime; the hotkey outcome is logged upstream.
let _hotkeys = register_hotkeys(app.handle(), &cfg);
{
let st = app.state::<AppState>();
start_overlay_clickthrough_poll(