Skip to content

Commit

Permalink
Refresh list on non-empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanformigoni committed Jan 6, 2025
1 parent f8712cb commit cf60615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/wizard/src/wizard/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ pub fn default(tx: Sender<common::Msg>, title: &str)
static SELECTED : LazyLock<Mutex<PathBuf>> = LazyLock::new(|| Mutex::new(PathBuf::default()));
static SHOW_SELECTED : LazyLock<Mutex<bool>> = LazyLock::new(|| Mutex::new(false));
// Update results if empty
if RESULTS.lock().unwrap().is_empty() && ! *SHOW_SELECTED.lock().unwrap()
if ! *SHOW_SELECTED.lock().unwrap()
{
*RESULTS.lock().unwrap() = default_search(&QUERY.lock().unwrap().clone());
} // if
Expand Down
2 changes: 1 addition & 1 deletion gui/wizard/src/wizard/wine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ pub fn rom(tx: Sender<common::Msg>, title: &str)
static SELECTED : LazyLock<Mutex<PathBuf>> = LazyLock::new(|| Mutex::new(PathBuf::default()));
static SHOW_SELECTED : LazyLock<Mutex<bool>> = LazyLock::new(|| Mutex::new(false));
// Update results if empty
if RESULTS.lock().unwrap().is_empty() && ! *SHOW_SELECTED.lock().unwrap()
if ! *SHOW_SELECTED.lock().unwrap()
{
*RESULTS.lock().unwrap() = rom_search(&QUERY.lock().unwrap());
} // if
Expand Down

0 comments on commit cf60615

Please sign in to comment.