Skip to content

Commit

Permalink
change command batch order when toggling thumbnail mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Apr 7, 2024
1 parent 03238b3 commit f3d079f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/types/sniffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ impl Sniffer {
self.timing_events.thumbnail_enter_now();
Command::batch([
window::maximize(Id::MAIN, false),
window::resize(Id::MAIN, size),
window::toggle_decorations(Id::MAIN),
window::resize(Id::MAIN, size),
window::move_to(Id::MAIN, position.to_point()),
window::change_level(Id::MAIN, Level::AlwaysOnTop),
])
Expand All @@ -365,8 +365,8 @@ impl Sniffer {
if !triggered_by_resize {
let size = self.configs.lock().unwrap().window.size.to_size();
let position = self.configs.lock().unwrap().window.position.to_point();
commands.push(window::resize(Id::MAIN, size));
commands.push(window::move_to(Id::MAIN, position));
commands.push(window::resize(Id::MAIN, size));
}
Command::batch(commands)
};
Expand Down

0 comments on commit f3d079f

Please sign in to comment.