55use crate :: bitcoin_config:: ConfigEntry as BitcoinEntry ;
66use crate :: components:: bitcoin_config_view:: BitcoinConfigView ;
77use crate :: components:: file_explorer:: FileExplorer ;
8+ use crate :: components:: p2pool_config_view:: P2PoolConfigView ;
89use p2poolv2_config:: Config as P2PoolConfig ;
910use std:: path:: PathBuf ;
1011
@@ -40,6 +41,10 @@ pub enum AppAction {
4041 CommitEdit ( usize , String ) ,
4142 // Saves bitcoin config to disk
4243 SaveBitcoinConfig ,
44+ /// Commits an edited p2pool config value: (entry index, new value)
45+ CommitP2PoolEdit ( usize , String ) ,
46+ /// Saves p2pool config to disk
47+ SaveP2PoolConfig ,
4348}
4449
4550pub struct App {
@@ -50,6 +55,7 @@ pub struct App {
5055 pub p2pool_conf_path : Option < PathBuf > ,
5156 pub explorer : FileExplorer ,
5257 pub bitcoin_config_view : BitcoinConfigView ,
58+ pub p2pool_config_view : P2PoolConfigView ,
5359 pub p2pool_config : Option < P2PoolConfig > ,
5460 pub bitcoin_data : Vec < BitcoinEntry > ,
5561 pub bitcoin_status_tab : usize ,
@@ -65,6 +71,7 @@ impl App {
6571 p2pool_conf_path : None ,
6672 explorer : FileExplorer :: new ( ) ,
6773 bitcoin_config_view : BitcoinConfigView :: new ( ) ,
74+ p2pool_config_view : P2PoolConfigView :: new ( ) ,
6875 p2pool_config : None ,
6976 bitcoin_data : Vec :: new ( ) ,
7077 bitcoin_status_tab : 0 ,
0 commit comments