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() );
// Prepare file watcher:
#ifdef _WIN32
if( PathIsNetworkPathW( prj_dir.wc_str() ) )
{
// Don't support network shares for now
// SAMBA passes bad events to Windows and wxWidgets idiotically asserts
// rather than accepting vlaid event IDs
// Windows Server shares do not have this problem
m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 );
return;
}
else
{
m_Parent->SetStatusText( _( "" ), 0 );
}
#endif
#ifdef _WIN32
if( PathIsNetworkPathW( prj_dir.wc_str() ) )
{
// Don't support network shares for now
// SAMBA passes bad events to Windows and wxWidgets idiotically asserts
// rather than accepting vlaid event IDs
// Windows Server shares do not have this problem
m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 );
return;
}
else
{
m_Parent->SetStatusText( _( "" ), 0 );
}
#endif
if( m_watcher )
{
m_watcher->RemoveAll();