Skip to content

Commit bbd04cd

Browse files
fix: windows fixes
1 parent 8c7e179 commit bbd04cd

9 files changed

Lines changed: 215 additions & 81 deletions

File tree

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"electron-squirrel-startup": "^1.0.1",
6363
"electron-store": "^11.0.2",
6464
"extract-zip": "^2.0.1",
65+
"filesize": "^11.0.15",
6566
"georaster": "^1.6.0",
6667
"georaster-layer-for-leaflet": "^4.1.2",
6768
"got": "^14.6.6",

src/components/Workarea.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export default function Workarea() {
6161
setCurrentTab(newValue);
6262
};
6363

64-
console.log('Render worker area', project);
6564
if (!installState?.installed) {
6665
return (
6766
<Install />

src/contexts/Installer.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const InstallerProvider = ({ children }) => {
1616

1717

1818
const handleStateChange = (event, stateChange) => {
19-
console.log('stateChange', stateChange);
2019
setInstallState(stateChange);
2120
}
2221

src/lib/ipc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import * as tools from './tools';
77
import { getRecentProjects } from './app';
88

99

10+
ipcMain.handle('app.exit', async (_event, options) => {
11+
app.quit();
12+
});
13+
1014
ipcMain.handle('dialog.confirm', async (_event, options) => {
1115
const result = await dialog.showMessageBox({
1216
type: 'question',
@@ -46,4 +50,5 @@ ipcMain.handle('imagery.satellite', (_event, wmsSource) => imagery.generateSatel
4650

4751

4852
ipcMain.handle('tools.checkInstallState', () => tools.checkInstallState());
49-
ipcMain.handle('tools.installStart', () => tools.installStart());
53+
ipcMain.handle('tools.installStart', () => tools.installStart());
54+
ipcMain.handle('tools.installCancel', () => tools.installCancel());

src/lib/menu.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { app, dialog, Menu, Tray, shell } from 'electron';
22
import * as project from './project';
3+
import { isInstalled } from './tools';
34

45
let appMenu;
56
let exportRawMenu;
@@ -30,26 +31,28 @@ export function buildAppMenu() {
3031
{
3132
label: 'Open Project',
3233
click: project.open,
34+
enabled: isInstalled(),
3335
accelerator: 'CommandOrControl+O'
3436
},
3537
{
3638
label: 'Save Project',
3739
click: project.save,
40+
enabled: isInstalled(),
3841
accelerator: 'CommandOrControl+S'
3942
},
40-
{ type: 'separator' },
41-
{
42-
id: 'export-raw',
43-
label: 'Export RAW Terrain',
44-
click: project.save,
45-
accelerator: 'CommandOrControl+S'
46-
},
47-
{
48-
id: 'export-raw',
49-
label: 'Export Satellite Imagery',
50-
click: project.save,
51-
accelerator: 'CommandOrControl+S'
52-
},
43+
// { type: 'separator' },
44+
// {
45+
// id: 'export-raw',
46+
// label: 'Export RAW Terrain',
47+
// click: project.save,
48+
// accelerator: 'CommandOrControl+S'
49+
// },
50+
// {
51+
// id: 'export-raw',
52+
// label: 'Export Satellite Imagery',
53+
// click: project.save,
54+
// accelerator: 'CommandOrControl+S'
55+
// },
5356
{ type: 'separator' },
5457
isMac ? { role: 'close' } : { role: 'quit' },
5558
]

0 commit comments

Comments
 (0)