Skip to content

Commit

Permalink
Reset store on update + Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroVasin committed Sep 29, 2024
1 parent c3dea5f commit a633418
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function updateContextMenu() {
{
label: 'Update and Restart',
click: () => {
store.set('new_version_released', false)
store.clear()
autoUpdater.quitAndInstall()
}
}
Expand Down Expand Up @@ -360,9 +360,8 @@ function showDrawWindow() {
}

function hideDrawWindow() {
mainWindow.hide()

resetScreen()
mainWindow.hide()

foregroundMode = false
updateContextMenu() // Need to rerender the context menu
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ const Application = (settings) => {

setActiveFigureInfo(null);
setAllFigures([]);
setLaserFigure([]);
};

const handleToggleToolbar = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/components/ToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ const ToolBar = ({
</ul>
</div>
</div>
<div className="toolbar__draglines">
<div className="draglines rotated" onMouseDown={onMouseDown}>
<div className="toolbar__draglines" onMouseDown={onMouseDown}>
<div className="draglines rotated">
<div />
<div />
<div />
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/components/drawer/figures.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const createGradient = (ctx, pointA, pointB, rainbowColorDeg, updateRainbowColor
}

const activeColorAndWidth = () => {
return ['#FFF', 1]
return ['#FFF', 2]
}

const detectColorAndWidth = (ctx, pointA, pointB, colorIndex, widthIndex, rainbowColorDeg, updateRainbowColorDeg) => {
Expand Down

0 comments on commit a633418

Please sign in to comment.