fix forking during channel selection
Dependencies
- [2]
5ZRDYL6Kfork channel, fix recording esc key - [3]
S4WH75Y3allow to select channels if there are any other. Conditional switch - [4]
WAOGSCOJvery nice refactor, wip adding channels logs - [5]
MORKDJUEuse allowed actions binding for key subs - [6]
YRGDFHABproject dir picker - [*]
6YZAVBWUInitial commit
Change contents
- replacement in inflorescence/src/main.rs at line 942
if matches!(selection.primary, selection::Primary::Channel) {if let Some(name) = forking_channel_name.take_if(|name| {let name = name.trim();let empty = name.is_empty();let unique = || {repo.channel != name&& !repo.other_channels.iter().any(|n| n == name)};!empty && unique()}) {state.repo_tx_in.send(repo::MsgIn::ForkChannel(name)).unwrap();} else if matches!(selection.primary,selection::Primary::Channel) { - edit in inflorescence/src/main.rs at line 972[2.6453]→[3.2203:2246](∅→∅),[3.2246]→[4.83556:83614](∅→∅),[4.83614]→[3.2304:2447](∅→∅),[3.2304]→[3.2304:2447](∅→∅),[3.2447]→[4.83615:83857](∅→∅),[4.83857]→[3.2528:2798](∅→∅),[3.2528]→[3.2528:2798](∅→∅)
} else if let Some(name) =forking_channel_name.take_if(|name| {let name = name.trim();let empty = name.is_empty();let unique = || {repo.channel != name&& !repo.other_channels.iter().any(|n| n == name)};!empty && unique()}){state.repo_tx_in.send(repo::MsgIn::ForkChannel(name)).unwrap();