Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gui-js/apps/minsky-electron/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export default class App {
catch (err) {
// Macs sometimes put extra guff on the command line, so ignore errors
}
} else { // start an empty model
CommandsManager.createNewSystem();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { homedir } from 'os';
import JSON5 from 'json5';
import { extname, join, dirname } from 'path';
import { tmpdir } from 'os';
import fullname from 'fullname';
import { HelpFilesManager } from './HelpFilesManager';
import { WindowManager } from './WindowManager';
import { StoreManager } from './StoreManager';
Expand Down Expand Up @@ -475,6 +476,7 @@ export class CommandsManager {
minsky.clearAllMaps();
minsky.pushFlags();
minsky.clearHistory();
minsky.author(await fullname());
minsky.model.setZoom(1);
minsky.canvas.recentre();
minsky.popFlags();
Expand Down
1 change: 1 addition & 0 deletions gui-js/libs/shared/src/lib/backend/minsky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,7 @@ export class Minsky extends CppClass {
async addNewPublicationTab(a1: string): Promise<void> {return this.$callMethod('addNewPublicationTab',a1);}
async allGodleyFlowVars(): Promise<string[]> {return this.$callMethod('allGodleyFlowVars');}
async assetClasses(): Promise<string[]> {return this.$callMethod('assetClasses');}
async author(...args: string[]): Promise<string> {return this.$callMethod('author',...args);}
async autoLayout(): Promise<void> {return this.$callMethod('autoLayout');}
async autoSaveFile(): Promise<string> {return this.$callMethod('autoSaveFile');}
async availableOperations(): Promise<string[]> {return this.$callMethod('availableOperations');}
Expand Down
Loading
Loading