Skip to content

Commit

Permalink
PR tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Apr 12, 2023
1 parent d8b69fb commit 1be8dd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions crates/re_viewer/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ fn get_persist_state(info: &eframe::IntegrationInfo) -> bool {
.map(String::as_str)
{
Some("0") => false,
Some("1") => true,
Some(other) => {
re_log::warn!(
"Unexpected value for 'persist' query: {other:?}. Expected either '0' or '1'. Defaulting to '1'."
);
true
}
_ => true,
}
}
7 changes: 6 additions & 1 deletion crates/rerun/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ struct Args {
#[clap(long)]
memory_limit: Option<String>,

/// Whether the Rerun Viewer should persist the state of the viewer to local storage
/// Whether the Rerun Viewer should persist the state of the viewer to disk.
///
/// When persisted, the state will be stored at the following locations:
/// - Linux: /home/UserName/.local/share/rerunviewer
/// - macOS: /Users/UserName/Library/Application Support/rerunviewer
/// - Windows: C:\Users\UserName\AppData\Roaming\rerunviewer
#[clap(long, default_value_t = true)]
persist_state: bool,

Expand Down

0 comments on commit 1be8dd7

Please sign in to comment.