mirror of https://github.com/bobwen-dev/hunter
remove slide up on start for left/main widget
This commit is contained in:
parent
60220eaf1e
commit
48410f672c
|
@ -226,7 +226,6 @@ impl Tabbable for TabView<FileBrowser> {
|
|||
|
||||
impl FileBrowser {
|
||||
pub fn new(core: &WidgetCore, cache: Option<FsCache>) -> HResult<FileBrowser> {
|
||||
let startup = cache.is_none();
|
||||
let fs_cache = cache.unwrap_or_else(|| FsCache::new(core.get_sender()));
|
||||
|
||||
let cwd = std::env::current_dir().unwrap();
|
||||
|
@ -273,10 +272,6 @@ impl FileBrowser {
|
|||
list.content.dirty_meta.set_dirty();
|
||||
list.refresh().log();
|
||||
|
||||
if startup {
|
||||
list.animate_slide_up(None).log();
|
||||
}
|
||||
|
||||
list.content.meta_all();
|
||||
Ok(list)
|
||||
}));
|
||||
|
@ -304,10 +299,6 @@ impl FileBrowser {
|
|||
|
||||
list.refresh().log();
|
||||
|
||||
if startup {
|
||||
list.animate_slide_up(None).log();
|
||||
}
|
||||
|
||||
Ok(list)
|
||||
}));
|
||||
let left_widget = FileBrowserWidgets::FileList(left_widget);
|
||||
|
|
Loading…
Reference in New Issue