remove slide up on start for left/main widget

This commit is contained in:
rabite 2019-04-15 21:34:52 +02:00
parent 60220eaf1e
commit 48410f672c
1 changed files with 0 additions and 9 deletions

View File

@ -226,7 +226,6 @@ impl Tabbable for TabView<FileBrowser> {
impl FileBrowser { impl FileBrowser {
pub fn new(core: &WidgetCore, cache: Option<FsCache>) -> HResult<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 fs_cache = cache.unwrap_or_else(|| FsCache::new(core.get_sender()));
let cwd = std::env::current_dir().unwrap(); let cwd = std::env::current_dir().unwrap();
@ -273,10 +272,6 @@ impl FileBrowser {
list.content.dirty_meta.set_dirty(); list.content.dirty_meta.set_dirty();
list.refresh().log(); list.refresh().log();
if startup {
list.animate_slide_up(None).log();
}
list.content.meta_all(); list.content.meta_all();
Ok(list) Ok(list)
})); }));
@ -304,10 +299,6 @@ impl FileBrowser {
list.refresh().log(); list.refresh().log();
if startup {
list.animate_slide_up(None).log();
}
Ok(list) Ok(list)
})); }));
let left_widget = FileBrowserWidgets::FileList(left_widget); let left_widget = FileBrowserWidgets::FileList(left_widget);