v1.4.8
This commit is contained in:
@@ -66,7 +66,7 @@ Instructions and more info can be found in the <a href="https://github.com/CDeen
|
||||
Module manifest: https://raw.githubusercontent.com/CDeenen/MaterialDeck/Master/module.json
|
||||
|
||||
## Software Versions & Module Incompatibilities
|
||||
<b>Foundry VTT:</b> Tested on 0.7.9 - 0.9<br>
|
||||
<b>Foundry VTT:</b> Tested on 0.7.9 - 0.8.5<br>
|
||||
<b>Module Incompatibilities:</b> None known.<br>
|
||||
|
||||
## Developer Guide
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# Changelog Material Deck Module
|
||||
### v1.4.8 - 22-12-2021
|
||||
Fixes:
|
||||
<ul>
|
||||
<li>'Device Configuration' would not save its settings properly</li>
|
||||
</ul>
|
||||
|
||||
|
||||
### v1.4.7 - 20-12-2021
|
||||
Fixes:
|
||||
<ul>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "MaterialDeck",
|
||||
"title": "Material Deck",
|
||||
"description": "Material Deck allows you to control Foundry using an Elgato Stream Deck",
|
||||
"version": "1.4.7",
|
||||
"version": "1.4.8",
|
||||
"author": "CDeenen",
|
||||
"authors": {
|
||||
"name": "CDeenen",
|
||||
|
||||
@@ -1214,7 +1214,11 @@ export class deviceConfig extends FormApplication {
|
||||
*/
|
||||
getData() {
|
||||
this.devices = [];
|
||||
const dConfig = game.settings.get(moduleName, 'devices');
|
||||
let dConfig = game.settings.get(moduleName, 'devices');
|
||||
if (Object.prototype.toString.call(game.settings.get('MaterialDeck', 'devices')) === "[object String]") {
|
||||
dConfig = {};
|
||||
game.settings.set(moduleName, 'devices', dConfig);
|
||||
}
|
||||
|
||||
for (let d of streamDeck.buttonContext) {
|
||||
let type;
|
||||
@@ -1263,7 +1267,6 @@ export class deviceConfig extends FormApplication {
|
||||
let dConfig = game.settings.get(moduleName, 'devices');
|
||||
delete dConfig[id];
|
||||
dConfig[id] = {enable: event.currentTarget.checked}
|
||||
|
||||
game.settings.set(moduleName, 'devices', dConfig);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user