Add Rig native model providers
This commit is contained in:
@@ -1167,9 +1167,6 @@ impl SettingsView {
|
||||
// Warp Drive page
|
||||
let warp_drive_page_handle =
|
||||
ctx.add_typed_action_view(warp_drive_page::WarpDriveSettingsPageView::new);
|
||||
ctx.subscribe_to_view(&warp_drive_page_handle, |me, _, event, ctx| {
|
||||
me.handle_warp_drive_page_event(event, ctx);
|
||||
});
|
||||
|
||||
let platform_page_handle = ctx.add_typed_action_view(platform_page::PlatformPageView::new);
|
||||
ctx.subscribe_to_view(&platform_page_handle, |me, _, event, ctx| {
|
||||
@@ -1738,18 +1735,6 @@ impl SettingsView {
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_warp_drive_page_event(
|
||||
&mut self,
|
||||
event: &warp_drive_page::WarpDriveSettingsPageEvent,
|
||||
ctx: &mut ViewContext<Self>,
|
||||
) {
|
||||
match event {
|
||||
warp_drive_page::WarpDriveSettingsPageEvent::SignUp => {
|
||||
ctx.emit(SettingsViewEvent::SignupAnonymousUser)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_ai_page_event(&mut self, event: &AISettingsPageEvent, ctx: &mut ViewContext<Self>) {
|
||||
match event {
|
||||
AISettingsPageEvent::FocusModal => ctx.focus(&self.search_editor),
|
||||
|
||||
Reference in New Issue
Block a user