Skip to content

Commit 4323fe0

Browse files
committed
Savestate
1 parent 2bc37dd commit 4323fe0

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Changed default palette from Sonic 2 to the SCH unified palette
55
- Fixed a bug that allows deleting mappings in drawing mode
66
- Fixed a bug where up/down scrolls when there are active mappings
7+
- Rebuilt colour picker
78

89
## [0.0.7]
910
- Added changelog

app/components/file/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const File = observer(() => {
88

99
// }, []);
1010
if (listing.length) {
11-
console.log('script');
11+
// console.log('script');
1212
// load(listing[0].value);
1313
}
1414
return (

app/components/ui/file/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React, { Component } from 'react';
2-
import SVARS from '!!sass-variables-loader!#styles/variables.scss';
32
import { observer } from 'mobx-react';
43
import { workspace } from '#store/workspace';
5-
import { Item } from '#ui';
64

75
const { dialog } = require('electron').remote;
86

@@ -23,7 +21,7 @@ export class File extends Component {
2321
}
2422

2523
onEmpty = () => {
26-
this.update(void 0);
24+
this.update();
2725
};
2826

2927
onDragOver = () => {
@@ -44,7 +42,7 @@ export class File extends Component {
4442
update = (path) => {
4543
const { store, accessor } = this.props;
4644
if (store && accessor) {
47-
store[accessor] = path ? workspace.relativePath(path) : (store.accessor = ''); // TODO: this looks wrong
45+
store[accessor] = path ? workspace.relativePath(path) : '';
4846
}
4947

5048
this.props.onChange &&

0 commit comments

Comments
 (0)