Rename EguiState::open to is_open

This makes it more clear that it doesn't actually open the editor.
This commit is contained in:
Robbert van der Helm
2022-02-08 20:33:08 +01:00
parent d9ac60ae85
commit 07f9a18d3d
2 changed files with 3 additions and 2 deletions

View File

@@ -80,7 +80,8 @@ impl EguiState {
}
/// Whether the GUI is currently visible.
pub fn open(&self) -> bool {
// Called `is_open()` instead of `open()` to avoid the ambiguity.
pub fn is_open(&self) -> bool {
self.open.load(Ordering::Acquire)
}
}