mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-31 09:36:00 +00:00
fix: prevent crash in debug mode
This commit is contained in:
parent
ec5db97a74
commit
57e65a092a
1 changed files with 3 additions and 2 deletions
|
@ -158,10 +158,11 @@ impl Node {
|
|||
Label::new("Out peers [10-450]:"),
|
||||
);
|
||||
// not sure what's the right calculation to make
|
||||
ui.style_mut().spacing.slider_width = ui.available_width()
|
||||
ui.style_mut().spacing.slider_width = (ui.available_width()
|
||||
- ui.spacing().item_spacing.x * 4.0
|
||||
- ui.spacing().scroll.bar_width
|
||||
- (SPACE * 2.0);
|
||||
- (SPACE * 2.0))
|
||||
.max(0.0);
|
||||
ui.add(Slider::new(&mut self.out_peers, 10..=450))
|
||||
.on_hover_text(P2POOL_OUT);
|
||||
// ui.add_space(ui.available_width() - 4.0);
|
||||
|
|
Loading…
Reference in a new issue