EgtMachKernel 2.2b4 :

- cambiata UpdateSetup in UpdateCurrSetup
- aggiunta EraseCurrSetup.
This commit is contained in:
Dario Sassi
2020-02-20 11:26:13 +00:00
parent 263691ba3b
commit 65daa04bc4
8 changed files with 27 additions and 6 deletions
+12 -1
View File
@@ -121,7 +121,7 @@ MachMgr::FindToolInCurrSetup( const string& sTool)
//----------------------------------------------------------------------------
bool
MachMgr::UpdateSetup( void)
MachMgr::UpdateCurrSetup( void)
{
// aggiorno attrezzaggio
if ( ! m_stuMgr.Load())
@@ -132,3 +132,14 @@ MachMgr::UpdateSetup( void)
return false ;
return pMch->LoadAllTools() ;
}
//----------------------------------------------------------------------------
bool
MachMgr::EraseCurrSetup( void)
{
// pulisco attrezzaggio
if ( ! m_stuMgr.Clear())
return false ;
// salvo i dati
return m_stuMgr.Save() ;
}