mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-25 19:52:37 +02:00
add quick_discover startup check for common save paths
This commit is contained in:
@@ -144,6 +144,14 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> Result<()> {
|
||||
result in incomplete, corrupt, or overwritten save files.",
|
||||
)?;
|
||||
|
||||
// Quick check of common save locations (current user only, no profile scans)
|
||||
if app.save_folder.is_none() {
|
||||
if let Some(path) = discovery::quick_discover() {
|
||||
app.save_folder = Some(path);
|
||||
refresh_stats(&mut app.tui_state, app.save_folder.as_deref());
|
||||
}
|
||||
}
|
||||
|
||||
// Disclaimer flow
|
||||
if !crate::config::disclaimer_accepted() {
|
||||
match run_disclaimer(terminal, &mut app)? {
|
||||
|
||||
Reference in New Issue
Block a user