Merge branch 'maintenance' into devel
This commit is contained in:
commit
90704e292b
10 files changed
+3615
-1185
No files matched your search
+33
-47
@@ -1,63 +1,32 @@
|
||||
# OctoPrint Changelog
|
||||
|
||||
## 1.3.9rc4 (2018-07-20)
|
||||
## 1.3.9 (2018-07-25)
|
||||
|
||||
### Bug fixes
|
||||
### Still running OctoPrint 1.3.6? Heads-up!
|
||||
|
||||
* [#2737](https://github.com/foosel/OctoPrint/issues/2737) (regression) - Fix print button being enabled even though no file is selected.
|
||||
* [#2738](https://github.com/foosel/OctoPrint/issues/2738) (regression) - Limit the use of the `--no-cache-dir` argument added to `pip` calls to such versions of `pip` that already support it (anything newer than 1.5.6).
|
||||
* Only perform write tests on directories where necessary. Especially avoid them on page rendition to prevent misconfigured folders from triggering an HTTP 500. (regression)
|
||||
OctoPrint 1.3.9 includes a couple of dependency updates whose update during switch to 1.3.9 are known to trigger an "update failed" message within OctoPrint's update dialog:
|
||||
|
||||
### More information
|
||||

|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.9rc3...1.3.9rc4)
|
||||
The update did in fact succeed and the issue lies with a change in the underlying update mechanism concerning the dependencies. This problem has been fixed in 1.3.7/1.3.8 and versions prior to 1.3.6 aren't yet affected, so there you won't ever see this message there. If you are still running 1.3.6 though and updating from it, **simply run the update a second time through Settings > Software Update > Check for updates and clicking "Update now" in the reshown update notification**.
|
||||
|
||||
## 1.3.9rc3 (2018-07-16)
|
||||
### Running NGINX as reverse proxy? Be sure to configure HTTP protocol version 1.1!
|
||||
|
||||
### Improvements
|
||||
|
||||
* Fix resend and timeout handling during an active `job_on_hold`.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* [#2677](https://github.com/foosel/OctoPrint/issues/2677) (regression) - Fix a deadlock when `job_on_hold` is utilized (causing issues at least with Octolapse)
|
||||
* [#2719](https://github.com/foosel/OctoPrint/issues/2719) (regression) - Fix live print time estimation
|
||||
|
||||
### More information
|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.9rc2...1.3.9rc3)
|
||||
|
||||
## 1.3.9rc2 (2018-07-06)
|
||||
|
||||
### Improvements
|
||||
|
||||
* Add sanity check for disabled plugin list (see also [#2687 (comment)](https://github.com/foosel/OctoPrint/issues/2687#issuecomment-399797596)).
|
||||
* Improve logging of exceptions triggered inside the state update worker (see also [#2715](https://github.com/foosel/OctoPrint/issues/2715)).
|
||||
* Workaround for a potential `pip` issue when updating components through the Software Update plugin.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* [#2715](https://github.com/foosel/OctoPrint/issues/2715) (regression) - Fix broken estimator initialization on SD print start and resulting crash of the state update worker.
|
||||
|
||||
### More information
|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.9rc1...1.3.9rc2)
|
||||
|
||||
## 1.3.9rc1 (2018-06-20)
|
||||
|
||||
### Note for upgraders running NGINX as reverse proxy: Be sure to configure HTTP protocol version 1.1
|
||||
|
||||
OctoPrint 1.3.8 updates the internal webserver Tornado from 4.0.2 to 4.5.3. Among many many fixes and improvements this also includes a change (actually a fix) in the websocket implementation that requires you to tell your NGINX to use HTTP 1.1 instead of the default 1.0 to talk to OctoPrint. You can do this by simply adding
|
||||
OctoPrint 1.3.9 updates the internal webserver Tornado from 4.0.2 to 4.5.3. Among many many fixes and improvements this also includes a change (actually a fix) in the websocket implementation that requires you to tell your NGINX to use HTTP 1.1 instead of the default 1.0 to talk to OctoPrint. You can do this by simply adding
|
||||
|
||||
```
|
||||
proxy_http_version 1.1;
|
||||
```
|
||||
|
||||
to the `location` config. The [configuration examples](https://github.com/foosel/OctoPrint/wiki/Reverse-proxy-configuration-examples) have been adjusted accordingly. See also [#2526](https://github.com/foosel/OctoPrint/issues/2526).
|
||||
to the `location` config. The [configuration examples](https://discourse.octoprint.org/t/reverse-proxy-configuration-examples/1107) have been adjusted accordingly. See also [#2526](https://github.com/foosel/OctoPrint/issues/2526).
|
||||
|
||||
### Note for plugin authors
|
||||
### Disabled IPv6 and now there are issues with the server after the update? Bind to IPv4 addresses only!
|
||||
|
||||
As [announced with the release of OctoPrint 1.3.6](https://octoprint.org/blog/2017/12/12/new-release-1.3.6/), the legacy plugin bundling flag has now been removed again. [Make sure to check your plugins](https://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/) if you haven't done that so far!
|
||||
Starting with this release OctoPrint natively supports IPv6 and will attempt to bind to such addresses if it detects support in the underlying OS. If for whatever reason your OS doesn't support IPv6 even though Python's `socket` says otherwise, you can tell OctoPrint to bind to an IPv4 address only either via the `--host` command line parameter or `server.host` in `config.yaml`. Use `127.0.0.1` for localhost only, `0.0.0.0` for all IPv4 addresses or whatever specific IPv4 address you want to bind to.
|
||||
|
||||
### Plugin author and still dependent on the legacy plugin bundling flag? Fix your plugin!
|
||||
|
||||
As [announced with the release of OctoPrint 1.3.6](https://octoprint.org/blog/2017/12/12/new-release-1.3.6/), the legacy plugin bundling flag has now been removed again. [Make sure to check and if necessary fix your plugins](https://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/) if you haven't done that so far!
|
||||
|
||||
### Improvements
|
||||
|
||||
@@ -111,6 +80,10 @@ As [announced with the release of OctoPrint 1.3.6](https://octoprint.org/blog/20
|
||||
* Added two new hooks for firmware information, [`octoprint.comm.firmware.info`](http://docs.octoprint.org/en/maintenance/plugins/hooks.html#octoprint-comm-firmware-info) and [`octoprint.comm.firmware.capabilities`](http://docs.octoprint.org/en/maintenance/plugins/hooks.html#octoprint-comm-firmware-capabilities).
|
||||
* Added view model list to `OctoPrint.coreui` UI module.
|
||||
* Improved logging of `FatalStartupError`s.
|
||||
* Add sanity check for disabled plugin list (see also [#2687 (comment)](https://github.com/foosel/OctoPrint/issues/2687#issuecomment-399797596)).
|
||||
* Improve logging of exceptions triggered inside the state update worker (see also [#2715](https://github.com/foosel/OctoPrint/issues/2715)).
|
||||
* Workaround for a potential `pip` issue when updating components through the Software Update plugin.
|
||||
* Fix resend and timeout handling during an active `job_on_hold`.
|
||||
* Updated some dependencies:
|
||||
* Tornado to 4.5. Version 5 sadly has issues with web socket handling when access behind `haproxy`. So far no solution has been found, so we stay at 4.5 for now.
|
||||
* jQuery to 3.3.1
|
||||
@@ -155,21 +128,34 @@ As [announced with the release of OctoPrint 1.3.6](https://octoprint.org/blog/20
|
||||
* [#2625](https://github.com/foosel/OctoPrint/issues/2625) - Fixed incompatibility of OctoPrint's plugin subsystem with Python wheels, which are the default mode of installing plugins from pip version 10.0.0 onward.
|
||||
* [#2632](https://github.com/foosel/OctoPrint/issues/2632) - Fixed race condition in resend handling on missing `ok`s.
|
||||
* [#2675](https://github.com/foosel/OctoPrint/issues/2675) - Fixed a possible division by zero on SD upload.
|
||||
* [#2677](https://github.com/foosel/OctoPrint/issues/2677) (regression) - Fix a deadlock when `job_on_hold` is utilized (causing issues at least with Octolapse)
|
||||
* [#2683](https://github.com/foosel/OctoPrint/pull/2683) - Fixed two missing spaces in the german translation.
|
||||
* [#2715](https://github.com/foosel/OctoPrint/issues/2715) (regression) - Fix broken estimator initialization on SD print start and resulting crash of the state update worker.
|
||||
* [#2719](https://github.com/foosel/OctoPrint/issues/2719) (regression) - Fix live print time estimation
|
||||
* [#2737](https://github.com/foosel/OctoPrint/issues/2737) (regression) - Fix print button being enabled even though no file is selected.
|
||||
* [#2738](https://github.com/foosel/OctoPrint/issues/2738) (regression) - Limit the use of the `--no-cache-dir` argument added to `pip` calls to such versions of `pip` that already support it (anything newer than 1.5.6).
|
||||
* Properly handle absolute paths for recovery data comparison.
|
||||
* Fixed snapshot test button not resetting on error.
|
||||
* Fixed decoupling of metadata logs in the file manager.
|
||||
* Fixed "remember me" and IPv4/IPv6 sessions. This might also solve [#1881](https://github.com/foosel/OctoPrint/issues/1881).
|
||||
* Removed Repetier resend repetition detection and handling code. It was buggy and introducing issues.
|
||||
* Fixed script order: `beforePrint*` should always precede any commands from the print job.
|
||||
* Only perform write tests on directories where necessary. Especially avoid them on page rendition to prevent misconfigured folders from triggering an HTTP 500. (regression)
|
||||
|
||||
### Special thanks to all the contributors!
|
||||
|
||||
Special thanks to everyone who contributed to this release candidate, especially [@benlye](https://github.com/benlye), [@dadosch](https://github.com/dadosch), [@dforsi](https://github.com/dforsi), [@ganey](https://github.com/ganey),[@malnvenshorn](https://github.com/malnvenshorn), [@ntoff](https://github.com/ntoff), [@tedder](https://github.com/tedder) and [@vitormhenrique](https://github.com/vitormhenrique) for their PRs.
|
||||
Special thanks to everyone who contributed to this release, especially [@benlye](https://github.com/benlye), [@dadosch](https://github.com/dadosch), [@dforsi](https://github.com/dforsi), [@ganey](https://github.com/ganey),[@malnvenshorn](https://github.com/malnvenshorn), [@ntoff](https://github.com/ntoff), [@tedder](https://github.com/tedder) and [@vitormhenrique](https://github.com/vitormhenrique) for their PRs.
|
||||
|
||||
### More information
|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.8...1.3.9rc1)
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.8...1.3.9)
|
||||
* Release Candidates:
|
||||
* [1.3.9rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.9rc1)
|
||||
* [1.3.9rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.9rc2)
|
||||
* [1.3.9rc3](https://github.com/foosel/OctoPrint/releases/tag/1.3.9rc3)
|
||||
* [1.3.9rc4](https://github.com/foosel/OctoPrint/releases/tag/1.3.9rc4)
|
||||
* A big **Thank you!** to everyone who reported back on these release candidates this time:
|
||||
[arhi](https://github.com/arhi), [b-morgan](https://github.com/b-morgan), [brandstaetter](https://github.com/brandstaetter), [buchnoun](https://github.com/buchnoun), [CapnBry](https://github.com/CapnBry), [chatrat12](https://github.com/chatrat12), [ChrisHeerschap](https://github.com/ChrisHeerschap), [christianlupus](https://github.com/christianlupus), [chrisWhyTea](https://github.com/chrisWhyTea), [Crowlord](https://github.com/Crowlord), [ctgreybeard](https://github.com/ctgreybeard), [Cyberwizzard](https://github.com/Cyberwizzard), [DrJuJu](https://github.com/DrJuJu), [ejjenkins](https://github.com/ejjenkins), [fieldOfView](https://github.com/fieldOfView), [FormerLurker](https://github.com/FormerLurker), [four-of-four](https://github.com/four-of-four), [Galfinite](https://github.com/Galfinite), [gege2b](https://github.com/gege2b), [HFMan](https://github.com/HFMan), [jjlink](https://github.com/jjlink), [jneilliii](https://github.com/jneilliii), [JohnOCFII](https://github.com/JohnOCFII), [jwg3](https://github.com/jwg3), [kazibole](https://github.com/kazibole), [larp-welt](https://github.com/larp-welt), [McFly99](https://github.com/McFly99), [mod38](https://github.com/mod38), [ntoff](https://github.com/ntoff), [OutsourcedGuru](https://github.com/OutsourcedGuru), [paukstelis](https://github.com/paukstelis), [pingywon](https://github.com/pingywon), [pscrespo](https://github.com/pscrespo), [Rapsey](https://github.com/Rapsey), [tech-rat](https://github.com/tech-rat), [tedder](https://github.com/tedder), [thess](https://github.com/thess), [Thisismydigitalself](https://github.com/Thisismydigitalself), [tibmeister](https://github.com/tibmeister)
|
||||
|
||||
## 1.3.8 (2018-04-13)
|
||||
|
||||
|
||||
+1
-1
@@ -60,4 +60,4 @@ thanks to everyone who contributed!
|
||||
* Timothy D Hoogland
|
||||
* Trent Shumay
|
||||
|
||||
and 1337 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
and 1351 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
@@ -57,18 +57,10 @@ path to that in the plugin settings.
|
||||
Compiling for Raspbian
|
||||
++++++++++++++++++++++
|
||||
|
||||
.. note::
|
||||
Raspbian Jessie and later
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
A binary of CuraEngine 15.04.06 precompiled on Raspbian Jessie Lite 2016-03-18 is available
|
||||
`here <http://bit.ly/octopi_cura_engine_150406>`__. Don't forget to make it
|
||||
executable after copying it to your preferred destination on your Pi
|
||||
(suggestion: ``/usr/local/bin``) with ``chmod +x cura_engine``. Use at your
|
||||
own risk.
|
||||
|
||||
Raspbian Jessie
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Building on Raspbian Jessie is as easy as::
|
||||
Building on Raspbian Jessie and later is as easy as::
|
||||
|
||||
sudo apt-get -y install gcc-4.7 g++-4.7
|
||||
git clone -b legacy https://github.com/Ultimaker/CuraEngine.git
|
||||
|
||||
@@ -402,6 +402,13 @@ octoprint.comm.firmware.info
|
||||
|
||||
``firmware_name`` will be ``Some Firmware Name`` in this case.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
:param object comm_instance: The :class:`~octoprint.util.comm.MachineCom` instance which triggered the hook.
|
||||
:param str firmware_name: The name of the parsed capability
|
||||
:param dict firmware_data: All data contained in the ``M115`` report
|
||||
@@ -421,6 +428,13 @@ octoprint.comm.firmware.capabilities
|
||||
|
||||
Note that hook handlers will be called once per received capability line.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
:param object comm_instance: The :class:`~octoprint.util.comm.MachineCom` instance which triggered the hook.
|
||||
:param str capability: The name of the parsed capability
|
||||
:param bool enabled: Whether the capability is reported as enabled or disabled
|
||||
@@ -440,6 +454,13 @@ octoprint.comm.protocol.action
|
||||
|
||||
No returned value is expected.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within your handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example:**
|
||||
|
||||
Logs if the ``custom`` action (``// action:custom``) is received from the printer's firmware.
|
||||
@@ -477,6 +498,13 @@ This describes actually two hooks:
|
||||
trigger the *actual execution* of whatever functionality lies behind a given @ command, similar to
|
||||
:ref:`the action command hook <sec-plugins-hook-comm-protocol-action>`.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within your handlers as
|
||||
you will effectively block the send/receive loops, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example**
|
||||
|
||||
Pause the print on ``@wait`` (this mirrors the implementation of the built-in ``@pause`` command, just with a
|
||||
@@ -623,6 +651,13 @@ This describes actually four hooks:
|
||||
Note: Only one command of a given ``cmd_type`` (other than None) may be queued at a time. Trying to rewrite the ``cmd_type``
|
||||
to one already in the queue will give an error.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the send loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example**
|
||||
|
||||
The following hook handler replaces all ``M107`` ("Fan Off", deprecated) with an ``M106 S0`` ("Fan On" with speed
|
||||
@@ -658,6 +693,13 @@ octoprint.comm.protocol.gcode.received
|
||||
empty string as the received line. Note that Python functions will also automatically return ``None`` if an empty
|
||||
``return`` statement is used or just nothing is returned explicitly from the handler.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example:**
|
||||
|
||||
Looks for the response of an ``M115``, which contains information about the ``MACHINE_TYPE``, among other things.
|
||||
@@ -687,6 +729,13 @@ octoprint.comm.protocol.gcode.error
|
||||
Plugins might utilize this hook to handle errors generated by the printer that are recoverable in one way or
|
||||
the other and should not trigger the normal handling that assumes the worst.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example:**
|
||||
|
||||
Looks for error messages containing "fan error" or "bed missing" (ignoring case) and marks them as handled by the
|
||||
@@ -762,6 +811,13 @@ octoprint.comm.protocol.temperatures.received
|
||||
additional sanity checking to be applied and invalid values to be filtered out. If a handler returns an empty
|
||||
dictionary or ``None``, no further processing will take place.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as
|
||||
you will effectively block the receive loop, causing the communication with the printer to stall.
|
||||
|
||||
This includes I/O of any kind.
|
||||
|
||||
**Example**
|
||||
|
||||
The following example shows how to filter out actual temperatures that are outside a sane range of 1°C to 300°C.
|
||||
|
||||
@@ -198,7 +198,7 @@ $(function() {
|
||||
});
|
||||
|
||||
self._retrieveBedDimensions = function(currentProfileData) {
|
||||
if (currentProfileData == undefined) {
|
||||
if (currentProfileData === undefined) {
|
||||
currentProfileData = self.settings.printerProfiles.currentProfileData();
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ $(function() {
|
||||
var x = undefined, y = undefined, r = undefined, circular = false, centeredOrigin = false;
|
||||
|
||||
var formFactor = currentProfileData.volume.formFactor();
|
||||
if (formFactor == "circular") {
|
||||
if (formFactor === "circular") {
|
||||
r = currentProfileData.volume.width() / 2;
|
||||
circular = true;
|
||||
centeredOrigin = true;
|
||||
@@ -214,7 +214,7 @@ $(function() {
|
||||
x = currentProfileData.volume.width();
|
||||
y = currentProfileData.volume.depth();
|
||||
if (currentProfileData.volume.origin) {
|
||||
centeredOrigin = currentProfileData.volume.origin() == "center";
|
||||
centeredOrigin = currentProfileData.volume.origin() === "center";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ $(function() {
|
||||
self.loadFile = function(path, date){
|
||||
self.enableReload(false);
|
||||
self.needsLoad = false;
|
||||
if (self.status == "idle" && self.errorCount < 3) {
|
||||
if (self.status === "idle" && self.errorCount < 3) {
|
||||
self.status = "request";
|
||||
OctoPrint.files.download("local", path)
|
||||
.done(function(response, rstatus) {
|
||||
@@ -413,10 +413,10 @@ $(function() {
|
||||
GCODE.renderer.clear();
|
||||
GCODE.gCodeReader.loadFile(par);
|
||||
|
||||
if (self.layerSlider != undefined) {
|
||||
if (self.layerSlider !== undefined) {
|
||||
self.layerSlider.slider("disable");
|
||||
}
|
||||
if (self.layerCommandSlider != undefined) {
|
||||
if (self.layerCommandSlider !== undefined) {
|
||||
self.layerCommandSlider.slider("disable");
|
||||
}
|
||||
};
|
||||
@@ -441,10 +441,10 @@ $(function() {
|
||||
GCODE.renderer.render(cmdIndex.layer, 0, cmdIndex.cmd);
|
||||
GCODE.ui.updateLayerInfo(cmdIndex.layer);
|
||||
|
||||
if (self.layerSlider != undefined) {
|
||||
if (self.layerSlider !== undefined) {
|
||||
self.layerSlider.slider("setValue", cmdIndex.layer);
|
||||
}
|
||||
if (self.layerCommandSlider != undefined) {
|
||||
if (self.layerCommandSlider !== undefined) {
|
||||
self.layerCommandSlider.slider("setValue", [0, cmdIndex.cmd]);
|
||||
}
|
||||
};
|
||||
@@ -466,17 +466,17 @@ $(function() {
|
||||
self.currentlyPrinting = data.state.flags && (data.state.flags.printing || data.state.flags.paused);
|
||||
|
||||
if(self.loadedFilepath
|
||||
&& self.loadedFilepath == data.job.file.path
|
||||
&& self.loadedFileDate == data.job.file.date) {
|
||||
&& self.loadedFilepath === data.job.file.path
|
||||
&& self.loadedFileDate === data.job.file.date) {
|
||||
if (OctoPrint.coreui.browserTabVisible && self.tabActive && self.currentlyPrinting && self.renderer_syncProgress() && !self.waitForApproval()) {
|
||||
self._renderPercentage(data.progress.completion);
|
||||
}
|
||||
self.errorCount = 0
|
||||
} else {
|
||||
self.clear();
|
||||
if (data.job.file.path && data.job.file.origin != "sdcard"
|
||||
&& self.status != "request"
|
||||
&& (!self.waitForApproval() || self.selectedFile.path() != data.job.file.path || self.selectedFile.date() != data.job.file.date)) {
|
||||
if (data.job.file.path && data.job.file.origin !== "sdcard"
|
||||
&& self.status !== "request"
|
||||
&& (!self.waitForApproval() || self.selectedFile.path() !== data.job.file.path || self.selectedFile.date() !== data.job.file.date)) {
|
||||
self.selectedFile.path(data.job.file.path);
|
||||
self.selectedFile.date(data.job.file.date);
|
||||
self.selectedFile.size(data.job.file.size);
|
||||
@@ -516,7 +516,7 @@ $(function() {
|
||||
self._onModelLoaded = function(model) {
|
||||
if (!model) {
|
||||
self.ui_modelInfo("");
|
||||
if (self.layerSlider != undefined) {
|
||||
if (self.layerSlider !== undefined) {
|
||||
self.layerSlider.slider("disable");
|
||||
self.layerSlider.slider("setMax", 1);
|
||||
self.layerSlider.slider("setValue", 0);
|
||||
@@ -529,14 +529,13 @@ $(function() {
|
||||
} else {
|
||||
var output = [];
|
||||
output.push(gettext("Model size") + ": " + model.width.toFixed(2) + "mm × " + model.depth.toFixed(2) + "mm × " + model.height.toFixed(2) + "mm");
|
||||
output.push(gettext("Estimated total print time") + ": " + formatFuzzyPrintTime(model.printTime));
|
||||
output.push(gettext("Estimated layer height") + ": " + model.layerHeight.toFixed(2) + gettext("mm"));
|
||||
output.push(gettext("Layer count") + ": " + model.layersPrinted.toFixed(0) + " " + gettext("printed") + ", " + model.layersTotal.toFixed(0) + " " + gettext("visited"));
|
||||
output.push(gettext("Estimated total print time") + ": " + formatFuzzyPrintTime(model.printTime));
|
||||
|
||||
self.ui_modelInfo(output.join("<br>"));
|
||||
|
||||
self.maxLayer = model.layersPrinted - 1;
|
||||
if (self.layerSlider != undefined) {
|
||||
if (self.layerSlider !== undefined) {
|
||||
self.layerSlider.slider("enable");
|
||||
self.layerSlider.slider("setMax", self.maxLayer);
|
||||
self.layerSlider.slider("setValue", 0);
|
||||
@@ -550,7 +549,7 @@ $(function() {
|
||||
self._onLayerSelected = function(layer) {
|
||||
if (!layer) {
|
||||
self.ui_layerInfo("");
|
||||
if (self.layerCommandSlider != undefined) {
|
||||
if (self.layerCommandSlider !== undefined) {
|
||||
self.layerCommandSlider.slider("disable");
|
||||
self.layerCommandSlider.slider("setMax", 1);
|
||||
self.layerCommandSlider.slider("setValue", [0, 1]);
|
||||
@@ -564,8 +563,8 @@ $(function() {
|
||||
output.push(gettext("Layer number") + ": " + (layer.number + 1));
|
||||
output.push(gettext("Layer height") + " (mm): " + layer.height);
|
||||
output.push(gettext("GCODE commands") + ": " + layer.commands);
|
||||
if (layer.filament != undefined) {
|
||||
if (layer.filament.length == 1) {
|
||||
if (layer.filament !== undefined) {
|
||||
if (layer.filament.length === 1) {
|
||||
output.push(gettext("Filament") + ": " + layer.filament[0].toFixed(2) + "mm");
|
||||
} else {
|
||||
for (var i = 0; i < layer.filament.length; i++) {
|
||||
@@ -577,7 +576,7 @@ $(function() {
|
||||
|
||||
self.ui_layerInfo(output.join("<br>"));
|
||||
|
||||
if (self.layerCommandSlider != undefined) {
|
||||
if (self.layerCommandSlider !== undefined) {
|
||||
self.layerCommandSlider.slider("enable");
|
||||
self.layerCommandSlider.slider("setMax", layer.commands - 1);
|
||||
self.layerCommandSlider.slider("setValue", [0, layer.commands - 1]);
|
||||
@@ -592,11 +591,12 @@ $(function() {
|
||||
if (!options) return;
|
||||
|
||||
for (var opt in options) {
|
||||
if (opt == "zoomInOnModel" && options[opt] != self.renderer_zoomOnModel()) {
|
||||
if (!options.hasOwnProperty(opt)) continue;
|
||||
if (opt === "zoomInOnModel" && options[opt] !== self.renderer_zoomOnModel()) {
|
||||
self.renderer_zoomOnModel(false);
|
||||
} else if (opt == "centerViewport" && options[opt] != self.renderer_centerViewport()) {
|
||||
} else if (opt === "centerViewport" && options[opt] !== self.renderer_centerViewport()) {
|
||||
self.renderer_centerViewport(false);
|
||||
} else if (opt == "moveModel" && options[opt] != self.renderer_centerModel()) {
|
||||
} else if (opt === "moveModel" && options[opt] !== self.renderer_centerModel()) {
|
||||
self.renderer_centerModel(false);
|
||||
}
|
||||
}
|
||||
@@ -606,7 +606,7 @@ $(function() {
|
||||
if (self.currentlyPrinting && self.renderer_syncProgress()) self.renderer_syncProgress(false);
|
||||
|
||||
var value = event.value;
|
||||
if (self.currentLayer !== undefined && self.currentLayer == value) return;
|
||||
if (self.currentLayer !== undefined && self.currentLayer === value) return;
|
||||
self.currentLayer = value;
|
||||
|
||||
GCODE.ui.changeSelectedLayer(value);
|
||||
@@ -646,7 +646,7 @@ $(function() {
|
||||
if (self.currentlyPrinting && self.renderer_syncProgress()) self.renderer_syncProgress(false);
|
||||
|
||||
var tuple = event.value;
|
||||
if (self.currentCommand !== undefined && self.currentCommand[0] == tuple[0] && self.currentCommand[1] == tuple[1]) return;
|
||||
if (self.currentCommand !== undefined && self.currentCommand[0] === tuple[0] && self.currentCommand[1] === tuple[1]) return;
|
||||
self.currentCommand = tuple;
|
||||
|
||||
GCODE.ui.changeSelectedCommands(self.layerSlider.slider("getValue"), tuple[0], tuple[1]);
|
||||
@@ -661,14 +661,14 @@ $(function() {
|
||||
};
|
||||
|
||||
self.onTabChange = function(current, previous) {
|
||||
self.tabActive = current == "#gcode";
|
||||
self.tabActive = current === "#gcode";
|
||||
if (self.tabActive && self.needsLoad) {
|
||||
self.loadFile(self.selectedFile.path(), self.selectedFile.date());
|
||||
}
|
||||
};
|
||||
|
||||
self.shiftLayer = function(value){
|
||||
if (value != self.currentLayer) {
|
||||
if (value !== self.currentLayer) {
|
||||
self.layerSlider.slider('setValue', value);
|
||||
value = self.layerSlider.slider('getValue');
|
||||
//This sets the scroll bar to the appropriate position.
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
+1746
-548
File diff suppressed because it is too large.
Load diff
@@ -6,9 +6,9 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint 1.3.9.dev228+ge2f626d42\n"
|
||||
"Project-Id-Version: OctoPrint 1.3.9rc4.post0.dev0+g71b2cc87a\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2018-06-19 15:20+0200\n"
|
||||
"POT-Creation-Date: 2018-07-25 13:37+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
Reference in new issue
Block a user