Skip to content

Commit

Permalink
fix: hide toolbar while drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 committed Oct 2, 2024
1 parent 8f0ffef commit 7011352
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/windows/capture/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,16 @@ impl CaptureWindow {

toolbar = toolbar.push(horizontal_space().width(Fill));

let mut overlay = column![vertical_space().height(5)];

if self.shape.endpoints.initial_pt.is_none() && (self.endpoints.final_pt.is_some() || self.endpoints.initial_pt.is_none()) {
overlay = overlay.push(toolbar);
};

stack![
background,
canvas(self).height(Fill).width(Fill),
column![vertical_space().height(5), toolbar]
overlay
]
.height(Fill)
.width(Fill)
Expand Down

0 comments on commit 7011352

Please sign in to comment.