mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-16 10:43:53 +01:00
gui: fixes
- Wgpu renderer by default for Windows - Fix items borders sizes - Start camera at messages on scan press - Do not show pull-to-refresh on empty tx list - Do not close non-closeable modal on Back/Esc key press - Cut long connection name at wallet list - Fix setting of tx receiver address Reviewed-on: https://code.gri.mw/GUI/grim/pulls/47
This commit is contained in:
+6
-8
@@ -242,15 +242,13 @@ impl WalletTransaction {
|
||||
} else {
|
||||
tx.amount_credited - tx.amount_debited
|
||||
};
|
||||
let receiver: Option<SlatepackAddress> = {
|
||||
if let Some(proof) = &tx.payment_proof {
|
||||
let onion_addr = OnionV3Address::from_bytes(proof.receiver_address.to_bytes());
|
||||
if let Ok(addr) = SlatepackAddress::try_from(onion_addr) {
|
||||
Some(addr);
|
||||
}
|
||||
let mut receiver: Option<SlatepackAddress> = None;
|
||||
if let Some(proof) = &tx.payment_proof {
|
||||
let onion_addr = OnionV3Address::from_bytes(proof.receiver_address.to_bytes());
|
||||
if let Ok(addr) = SlatepackAddress::try_from(onion_addr) {
|
||||
receiver = Some(addr);
|
||||
}
|
||||
None
|
||||
};
|
||||
}
|
||||
let mut t = Self {
|
||||
data: tx,
|
||||
state: SlateState::Unknown,
|
||||
|
||||
Reference in New Issue
Block a user