mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-13 01:03:54 +01:00
wallet + config + ui: load wallet info, wallet connections and app config refactoring, check external connections availability, config subdir argument format, item button color, radio buttons stroke, chain type selection from connections, update translations
This commit is contained in:
@@ -108,7 +108,7 @@ impl NodeSetup {
|
||||
ui.add_space(4.0);
|
||||
|
||||
// Show chain type setup.
|
||||
self.chain_type_ui(ui);
|
||||
Self::chain_type_ui(ui);
|
||||
|
||||
// Show loading indicator or controls to stop/start/restart node.
|
||||
if Node::is_stopping() || Node::is_restarting() || Node::is_starting() {
|
||||
@@ -220,7 +220,7 @@ impl NodeSetup {
|
||||
}
|
||||
|
||||
/// Draw [`ChainTypes`] setup content.
|
||||
fn chain_type_ui(&mut self, ui: &mut egui::Ui) {
|
||||
pub fn chain_type_ui(ui: &mut egui::Ui) {
|
||||
let saved_chain_type = AppConfig::chain_type();
|
||||
let mut selected_chain_type = saved_chain_type;
|
||||
|
||||
|
||||
@@ -908,7 +908,7 @@ fn peer_item_ui(ui: &mut egui::Ui,
|
||||
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
|
||||
// Draw delete button for non-default seed peers.
|
||||
if peer_type != &PeerType::DefaultSeed {
|
||||
View::item_button(ui, View::item_rounding(index, len, true), TRASH, || {
|
||||
View::item_button(ui, View::item_rounding(index, len, true), TRASH, None, || {
|
||||
match peer_type {
|
||||
PeerType::CustomSeed => {
|
||||
NodeConfig::remove_custom_seed(peer_addr);
|
||||
|
||||
Reference in New Issue
Block a user