CtrlLib: FileSel fixed to compile in Linux

git-svn-id: svn://ultimatepp.org/upp/trunk@15459 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-11-19 19:53:36 +00:00
parent 3df4ba474d
commit aceca73cda
2 changed files with 9 additions and 1 deletions

View file

@ -1453,7 +1453,11 @@ void FileSel::Reload()
void FileSel::Activate()
{
if(loaded && !loading_network && GetDir() != "\\" && netnode.GetCount() == 0)
if(loaded && !loading_network && GetDir() != "\\"
#ifdef PLATFORM_WIN32
&& netnode.GetCount() == 0
#endif
)
Reload();
TopWindow::Activate();
}
@ -1461,7 +1465,9 @@ void FileSel::Activate()
bool FileSel::Key(dword key, int count) {
switch(key) {
case K_F9:
#ifdef PLATFORM_WIN32
netroot_loaded = false;
#endif
Reload();
return true;
case K_MOUSE_FORWARD:

View file

@ -278,8 +278,10 @@ protected:
void GoToPlace();
void AddPlaceRaw(const String& path, const Image& m, const String& name, const char* group = NULL, int row = -1);
void AddSystemPlaces(int row = -1);
#ifdef PLATFORM_WIN32
void ScanNetwork(Function<Array<NetNode> ()> fn);
void ScanNetworkRoot();
#endif
using WithFileSelectorLayout<TopWindow>::Title;