Formatting

Because I can't use a real IDE with msys
This commit is contained in:
Marek Roszko 2020-12-14 20:06:44 -05:00
parent f168ece461
commit 9de0846f3e
1 changed files with 16 additions and 17 deletions

View File

@ -1071,23 +1071,22 @@ void TREE_PROJECT_FRAME::FileWatcherReset()
wxString prj_dir = wxPathOnly( m_Parent->GetProjectFileName() ); wxString prj_dir = wxPathOnly( m_Parent->GetProjectFileName() );
// Prepare file watcher: // Prepare file watcher:
#ifdef _WIN32 #ifdef _WIN32
if( PathIsNetworkPathW( prj_dir.wc_str() ) ) if( PathIsNetworkPathW( prj_dir.wc_str() ) )
{ {
// Don't support network shares for now // Don't support network shares for now
// SAMBA passes bad events to Windows and wxWidgets idiotically asserts // SAMBA passes bad events to Windows and wxWidgets idiotically asserts
// rather than accepting vlaid event IDs // rather than accepting vlaid event IDs
// Windows Server shares do not have this problem // Windows Server shares do not have this problem
m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 ); m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 );
return; return;
} }
else else
{ {
m_Parent->SetStatusText( _( "" ), 0 ); m_Parent->SetStatusText( _( "" ), 0 );
} }
#endif #endif
if( m_watcher ) if( m_watcher )
{ {
m_watcher->RemoveAll(); m_watcher->RemoveAll();