Skip to content

Commit

Permalink
Try something else
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 23, 2024
1 parent 36fc3db commit d24414b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/jupytercad_core/src/stlplugin/modelfactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { Contents } from '@jupyterlab/services';

class JupyterCadSTLModel extends JupyterCadModel {
fromString(data: string): void {
this.sharedModel.transact(() => {
this.sharedModel.setSource(data);
});
this.sharedModel.source = data;
this.dirty = true;
}
}
Expand Down

0 comments on commit d24414b

Please sign in to comment.