merge duplicate arms and drop a needless clone
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user