You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+45-10Lines changed: 45 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ impl Plugin for Gain {
240
240
241
241
let sync_response = ui.checkbox(&mut sync_var.lock(),"Sync").on_hover_text("Lock drawing to timing");
242
242
let alt_sync = ui.checkbox(&mut alt_sync.lock(),"Alt. Sync").on_hover_text("Try this if Sync doesn't work");
243
-
let timing = ui.add(widgets::ParamSlider::for_param(¶ms.sync_timing, setter).with_width(60.0));
243
+
let timing = ui.add(widgets::ParamSlider::for_param(¶ms.sync_timing, setter).with_width(60.0)).on_hover_text("Refresh interval when sync enabled");
244
244
245
245
let dir_response = ui.checkbox(&mut dir_var.lock(),"Flip").on_hover_text("Flip direction of oscilloscope");
246
246
@@ -250,6 +250,17 @@ impl Plugin for Gain {
250
250
// Reset our line on change
251
251
if sync_response.clicked() || dir_response.clicked() || alt_sync.clicked() || timing.changed()
252
252
{
253
+
// Keep same direction when syncing (Issue #12)
254
+
if sync_response.clicked(){
255
+
// If flip selected already, it should be deselected on this click
256
+
if*dir_var.lock(){
257
+
*dir_var.lock() = false;
258
+
}
259
+
// If flip not selected, it should now be selected
260
+
else{
261
+
*dir_var.lock() = true;
262
+
}
263
+
}
253
264
sum_line = Line::new(PlotPoints::default());
254
265
aux_line = Line::new(PlotPoints::default());
255
266
line = Line::new(PlotPoints::default());
@@ -394,19 +405,43 @@ impl Plugin for Gain {
394
405
// This should still play well with other DAWs using this timing
0 commit comments