Skip to content

Commit

Permalink
Don't disable gcode viewer upon reset of connection
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Jan 6, 2014
1 parent 94e052a commit 260a378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/octoprint/static/js/app/dataupdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function DataUpdater(loginStateViewModel, connectionViewModel, printerStateViewM
self.timelapseViewModel.requestData();
self.loginStateViewModel.requestData();
self.gcodeFilesViewModel.requestData();
self.gcodeViewModel.reinitialize();
self.gcodeViewModel.reset();

if ($('#tabs li[class="active"] a').attr("href") == "#control") {
$("#webcam_image").attr("src", CONFIG_WEBCAM_STREAM + "?" + new Date().getTime());
Expand Down
3 changes: 1 addition & 2 deletions src/octoprint/static/js/app/viewmodels/gcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ function GcodeViewModel(loginStateViewModel, settingsViewModel) {
});
};

self.reinitialize = function() {
self.enabled = false;
self.reset = function() {
self.enableReload(false);
self.loadedFilename = undefined;
self.loadedFileDate = undefined;
Expand Down

0 comments on commit 260a378

Please sign in to comment.