Fix runtime errors
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
use std::ops::Deref;
|
||||
|
||||
use gpui2::{rems, AbsoluteLength, WindowContext};
|
||||
use gpui2::{rems, AbsoluteLength, AppContext, WindowContext};
|
||||
|
||||
use crate::prelude::*;
|
||||
|
||||
pub fn init(cx: &mut AppContext) {
|
||||
cx.set_global(FakeSettings::default());
|
||||
}
|
||||
|
||||
/// Returns the user settings.
|
||||
pub fn user_settings(cx: &WindowContext) -> FakeSettings {
|
||||
cx.global::<FakeSettings>().clone()
|
||||
|
||||
Reference in New Issue
Block a user