From 48bfea63d19e7e48d10df0656c2ae04e6365fd73 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 12 Mar 2022 17:21:18 +0100 Subject: [PATCH] filebrowser: fix hourglass object remove order Avoids holes on screen. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/26a01457d45181e7a03f211ed97a69f75f71dd01 Author: Thilo Graf Date: 2022-03-12 (Sat, 12 Mar 2022) ------------------ This commit was generated by Migit --- src/gui/filebrowser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index f6218ec63..818301e07 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -293,7 +293,7 @@ CFile *CFileBrowser::getSelectedFile() void CFileBrowser::ChangeDir(const std::string & filename, int selection) { - CHourGlass hg(x + width/2, y + height/3); + CHourGlass hg(x + width - width/3, y + height/3); hg.setXPos(hg.getXPos()-hg.getWidth()/2); hg.paint(false); std::string newpath; @@ -352,10 +352,10 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection) if ((selection != -1) && (selection < (int)filelist.size())) selected = selection; - hg.kill(COL_MENUCONTENT_PLUS_0); paintHead(); paint(); paintFoot(); + hg.kill(COL_MENUCONTENT_PLUS_0); } bool CFileBrowser::readDir(const std::string & dirname, CFileList* flist)