Skip to content

Commit

Permalink
typo visible
Browse files Browse the repository at this point in the history
  • Loading branch information
flisky committed Jul 24, 2024
1 parent a1f7bbe commit 0feb656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/ui/src/input/blink_cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use gpui::{ModelContext, Timer};
/// To manage the Input cursor blinking.
///
/// It will start blinking with a interval of 500ms.
/// Every loop will notify the view to update the `visable`, and Input will observe this update to touch repaint.
/// Every loop will notify the view to update the `visible`, and Input will observe this update to touch repaint.
///
/// The input painter will check if this in visible state, then it will draw the cursor.
pub struct BlinkCursor {
Expand Down
6 changes: 3 additions & 3 deletions crates/ui/src/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn init(_cx: &AppContext) {}
pub struct WebView {
focus_handle: FocusHandle,
webview: Rc<wry::WebView>,
visable: bool,
visible: bool,
}

impl WebView {
Expand All @@ -26,7 +26,7 @@ impl WebView {

Self {
focus_handle: cx.focus_handle(),
visable: true,
visible: true,
webview: Rc::new(webview),
}
}
Expand All @@ -40,7 +40,7 @@ impl WebView {
}

pub fn visible(&self) -> bool {
self.visable
self.visible
}

/// Go back in the webview history.
Expand Down

0 comments on commit 0feb656

Please sign in to comment.