Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit b6b9fdb

Browse files
committed
Merge remote-tracking branch 'DuetWebControl/v3.3-dev'
2 parents 650373c + c71238c commit b6b9fdb

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

WHATS_NEW.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
Summary of important changes in recent versions
22
===============================================
33

4-
Version 3.3-rc3
5-
===========
4+
Version 3.3.0
5+
=============
66

77
Upgrade notes since version 3.2:
88
- Saved G-codes from the inputs are no longer saved on the Duet to avoid excessive SD card wear
99
- This will be the last DWC version that remains compatible with old-style status responses
1010

1111
Compatible versions:
12-
- DuetSoftwareFramework 3.3
12+
- DuetSoftwareFramework 3.3.0
13+
- RepRapFirmware 2 or newer (1.2x may work but untested)
14+
15+
Bug fixes:
16+
- Layers chart was only cleared when the layer variable was set
17+
- Plugin upgrades were not working in standalone mode
18+
19+
Version 3.3-rc3
20+
===============
21+
22+
Compatible versions:
23+
- DuetSoftwareFramework 3.3-rc3
1324
- RepRapFirmware 2 or newer (1.2x may work but untested)
1425

1526
Changed behaviour:
@@ -25,7 +36,7 @@ Bug fixes:
2536
- Cache for simulated files was not properly cleared
2637

2738
Version 3.3-rc2
28-
==============
39+
===============
2940

3041
Compatible versions:
3142
- DuetSoftwareFramework 3.3-rc2
@@ -39,7 +50,7 @@ Bug fixes:
3950
- Added new `Disconnected` state to indicate when DWC is not connected to RRF
4051

4152
Version 3.3-rc1
42-
==============
53+
===============
4354

4455
Compatible versions:
4556
- DuetSoftwareFramework 3.3-rc1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "duetwebcontrol",
3-
"version": "3.3.0-RC3-CNC04",
4-
"pkgVersion": "3.3-rc3",
3+
"version": "3.3.0-CNC05",
4+
"pkgVersion": "3.3.0",
55
"repository": "github:chrishamm/DuetWebControl",
66
"homepage": "https://forum.duet3d.com/category/27/duet-web-control",
77
"license": "GPL-3.0",

src/components/lists/JobFileList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default {
287287
},
288288
lastJobFile(to) {
289289
if (Path.equals(this.directory, Path.extractDirectory(to))) {
290-
// Refresh the filelist after a short moment so DSF can update the simulation time first
290+
// Refresh the filelist after a short moment so DSF and RRF can update the simulation time first
291291
setTimeout(this.$refs.filelist.refresh.bind(this), 2000);
292292
}
293293
}

src/store/machine/connector/PollConnector.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,15 @@ export default class PollConnector extends BaseConnector {
219219
async loadPlugins() {
220220
try {
221221
const plugins = await this.download({ filename: Path.dwcPluginsFile });
222-
if (!(plugins instanceof Array)) {
222+
if ((plugins instanceof Object) && !(plugins instanceof Array)) {
223+
for (let id in plugins) {
224+
if (!plugins[id].dwcFiles) {
225+
plugins[id].dwcFiles = [];
226+
}
227+
if (!plugins[id].sdFiles) {
228+
plugins[id].sdFiles = [];
229+
}
230+
}
223231
this.plugins = plugins;
224232
await this.dispatch('update', { plugins });
225233
}
@@ -959,7 +967,7 @@ export default class PollConnector extends BaseConnector {
959967

960968
updateLayersModel(jobKey, axes, extruders, analogSensors) {
961969
// Are we printing?
962-
if (jobKey.duration === null || jobKey.layer === null) {
970+
if (jobKey.duration === null) {
963971
if (this.lastLayer !== -1) {
964972
this.lastLayer = -1;
965973
this.lastDuration = this.lastFilePosition = this.lastHeight = 0;
@@ -1257,7 +1265,7 @@ export default class PollConnector extends BaseConnector {
12571265

12581266
// Uninstall the previous version if required
12591267
if (this.plugins[plugin.id]) {
1260-
await this.uninstallPlugin(plugin.id, true);
1268+
await this.uninstallPlugin(plugin, true);
12611269
}
12621270

12631271
// Clear potential files
@@ -1317,7 +1325,7 @@ export default class PollConnector extends BaseConnector {
13171325
if (!forUpgrade) {
13181326
// Make sure uninstalling this plugin does not break any dependencies
13191327
for (let id in this.plugins) {
1320-
if (id !== plugin && this.plugins[id].dwcDependencies.indexOf(plugin) !== -1) {
1328+
if (id !== plugin.id && this.plugins[id].dwcDependencies.indexOf(plugin.id) !== -1) {
13211329
throw new Error(`Cannot uninstall plugin because plugin ${id} depends on it`);
13221330
}
13231331
}

0 commit comments

Comments
 (0)