This should fix those issues

This commit is contained in:
confused-Techie 2022-11-19 23:37:21 -08:00
parent 68d638a8fb
commit da7d801738
3 changed files with 13 additions and 2 deletions

View File

@ -140,7 +140,7 @@ export default class ChangeLogView {
checked={this.wasVersionDismissed()}
onchange={this.dismissVersion}
/>
Dismiss this Change Log
Want to Dismiss this Change Log?
</label>
</section>
</div>

View File

@ -45,6 +45,10 @@ export default class WelcomePackage {
atom.commands.add('atom-workspace', 'welcome:show', () => this.show())
);
this.subscriptions.add(
atom.commands.add('atom-workspace', 'welcome:showchangelog', () => this.showChangeLog())
);
if (atom.config.get('welcome.showOnStartup')) {
await this.show();
this.reporterProxy.sendEvent('show-on-initial-load');
@ -56,7 +60,7 @@ export default class WelcomePackage {
// Usually getVersion Returns something along MAJOR.MINOR.PATCH ARCH
// So we will account for that when checking what version they have.
if (lastViewedVersion[0] < curVersion[0] && lastViewedVersion[1] < curVersion[1] && lastViewedVersion[2].split(" ")[0] < curVersion[2].split(" ")[0]) {
await atom.workspace.open(CHANGELOG_URI);
await this.showChangeLog();
}
}
}
@ -68,6 +72,12 @@ export default class WelcomePackage {
]);
}
showChangeLog() {
return Promise.all([
atom.workspace.open(CHANGELOG_URI, { split: 'up' });
]);
}
consumeReporter(reporter) {
return this.reporterProxy.setReporter(reporter);
}

View File

@ -2,5 +2,6 @@
'label': 'Help'
'submenu': [
{'label': 'Welcome Guide', 'command': 'welcome:show'}
{'label': 'Change Log', 'command': 'welcome:showchangelog'}
]
]