refactor: replace shell with root view wrapping app content
This commit is contained in:
@@ -96,14 +96,7 @@ pub fn open_primary<P, F>(
|
||||
P: Panel + 'static,
|
||||
F: Fn(&mut Window, &mut App) -> Entity<P> + 'static,
|
||||
{
|
||||
open_slot(
|
||||
PanelSlot::Main,
|
||||
workspace,
|
||||
id,
|
||||
build,
|
||||
window,
|
||||
cx,
|
||||
);
|
||||
open_slot(PanelSlot::Main, workspace, id, build, window, cx);
|
||||
}
|
||||
|
||||
/// Opens a detail panel beside the main panel, reusing it when it is already cached.
|
||||
@@ -117,12 +110,5 @@ pub fn open_detail<P, F>(
|
||||
P: Panel + 'static,
|
||||
F: Fn(&mut Window, &mut App) -> Entity<P> + 'static,
|
||||
{
|
||||
open_slot(
|
||||
PanelSlot::Detail,
|
||||
workspace,
|
||||
id,
|
||||
build,
|
||||
window,
|
||||
cx,
|
||||
);
|
||||
open_slot(PanelSlot::Detail, workspace, id, build, window, cx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user