rmcl 0.4.0

A fully featured Minecraft TUI launcher
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::state;

pub(crate) fn reset() {
    state::IMPORT_STATE
        .lock()
        .expect("import wizard state")
        .reset();
    *state::IMPORT_RESULT.lock().expect("import wizard result") = None;
    *state::DISCOVERY_STATE
        .lock()
        .expect("modpack discovery state") =
        crate::tui::widgets::content::DiscoveryState::new_modpacks();
}