Skip to content

Commit

Permalink
fix bug when loading a diagram via ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
amblafont committed Oct 20, 2023
1 parent 2bc8550 commit 4b68149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "YADE",
"version": "1.0.0",
"version": "1.1.0",
"description": "A diagram editor",
"main": "build/index.js",
"repository": "git@github.com:amblafont/graph-editor-web.git",
"author": "amblaf <chaster_killer@hotmail.fr>",
"license": "MIT",
"scripts": {
"start": "yarn compile && electron-forge start",
"start": "electron-forge start",
"package": "electron-forge package",
"make": "yarn compile && electron-forge make",
"publish": "electron-forge publish",
Expand All @@ -34,13 +34,6 @@
]
},
"makers": [
{
"name": "@electron-forge/maker-zip",
"platforms": [
"linux"
],
"config": {}
},
{
"name": "@electron-forge/maker-deb",
"platforms": [
Expand Down
4 changes: 2 additions & 2 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ update msg modeli =
SimpleMsg s -> noCmd { iniModel | scenario = SimpleScenario, statusMsg = s }
SetFirstTab g ->
let tab = getActiveTabInTabs g.tabs in
(updateFirstTab model <| always
<| { tab | title = "preview"},
(updateFirstTab model <| \t ->
{ tab | title = t.title , active = t.active},
computeLayout ())
Loaded g ->
let scenario = scenarioOfString g.scenario in
Expand Down

0 comments on commit 4b68149

Please sign in to comment.