Skip to content

Commit

Permalink
disable threads when no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Brig Bagley committed Jun 2, 2015
1 parent d40e871 commit fc63016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ShapeWorksView2/PreferencesWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ void PreferencesWindow::updateLabels()
void PreferencesWindow::on_meshCacheEnabled_stateChanged( int state )
{
prefs_.setCacheEnabled( this->ui->meshCacheEnabled->isChecked() );
this->ui->parallelEnabled->setEnabled(state);
this->ui->numThreadsSlider->setEnabled(state);
emit clear_cache();
}

Expand Down

0 comments on commit fc63016

Please sign in to comment.