From 7431f55d204aca4f5b77bcfe2dcfcc0b3be00701 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 1 Nov 2021 19:24:08 +0100 Subject: [PATCH] filebrowser: implement loader view for waiting while folder selection --- src/gui/filebrowser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index b42ec52ed..8c4a97093 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -292,6 +293,9 @@ CFile *CFileBrowser::getSelectedFile() void CFileBrowser::ChangeDir(const std::string & filename, int selection) { + CHourGlass hg(x + width/2, y + height/3); + hg.setXPos(hg.getXPos()-hg.getWidth()/2); + hg.paint(false); std::string newpath; if ((m_Mode != ModeSC) && (filename == "..")) { @@ -348,6 +352,7 @@ 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();