Fixed bug with moving tables
This commit is contained in:
parent
4ec53eb4b9
commit
a27c3695a9
@ -135,10 +135,8 @@ function createEditorWindow(json) {
|
|||||||
|
|
||||||
function createNew() {
|
function createNew() {
|
||||||
let old_window = BrowserWindow.getFocusedWindow();
|
let old_window = BrowserWindow.getFocusedWindow();
|
||||||
let main_window = createEditorWindow();
|
let json = loadJson(path.join(app.getAppPath(), "src/default.json"));
|
||||||
main_window.once("ready-to-show", () => {
|
let main_window = createEditorWindow(json);
|
||||||
main_window.webContents.send("open-default");
|
|
||||||
})
|
|
||||||
old_window.close();
|
old_window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -741,7 +741,7 @@ function enableMovement() {
|
|||||||
animation: 50,
|
animation: 50,
|
||||||
easing: "cubic-bezier(1, 0, 0, 1)",
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
||||||
draggable: ".table-nav",
|
draggable: ".table-nav",
|
||||||
onend: function (event) {
|
onEnd: function (event) {
|
||||||
moveTable(event.oldIndex, event.newIndex);
|
moveTable(event.oldIndex, event.newIndex);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user