Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

use crate::components::bitcoin_config_view::BitcoinConfigView;
use crate::components::file_explorer::FileExplorer;
use crate::config::ConfigEntry as BitcoinEntry;
use p2poolv2_config::Config as P2PoolConfig;
Expand Down Expand Up @@ -35,6 +36,8 @@ pub enum AppAction {
FileSelected(PathBuf),
// Closes the explorer without selection
CloseModal,
// Save the bitcoin config to file
SaveConfig,
}

pub struct App {
Expand All @@ -46,6 +49,7 @@ pub struct App {
pub explorer: FileExplorer,
pub p2pool_config: Option<P2PoolConfig>,
pub bitcoin_data: Vec<BitcoinEntry>,
pub bitcoin_config_view: BitcoinConfigView,
pub bitcoin_status_tab: usize,
}

Expand All @@ -60,6 +64,7 @@ impl App {
explorer: FileExplorer::new(),
p2pool_config: None,
bitcoin_data: Vec::new(),
bitcoin_config_view: BitcoinConfigView::new(),
bitcoin_status_tab: 0,
}
}
Expand Down
Loading
Loading