diff --git a/liana-gui/src/app/view/receive.rs b/liana-gui/src/app/view/receive.rs index 8b76314a..febd8ebf 100644 --- a/liana-gui/src/app/view/receive.rs +++ b/liana-gui/src/app/view/receive.rs @@ -108,10 +108,15 @@ pub fn receive<'a>( Row::new() .align_y(Alignment::Center) .push(Container::new(h3("Receive")).width(Length::Fill)) - .push( - button::primary(Some(icon::plus_icon()), "Generate address") - .on_press(Message::NextReceiveAddress), - ), + .push({ + let (icon, label) = (Some(icon::plus_icon()), "Generate address"); + if addresses.is_empty() { + button::primary(icon, label) + } else { + button::secondary(icon, label) + } + .on_press(Message::NextReceiveAddress) + }), ) .push(text("Always generate a new address for each deposit.")) .push(