mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-26 11:08:40 +03:00
This should fix those issues
This commit is contained in:
parent
68d638a8fb
commit
da7d801738
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -2,5 +2,6 @@
|
||||
'label': 'Help'
|
||||
'submenu': [
|
||||
{'label': 'Welcome Guide', 'command': 'welcome:show'}
|
||||
{'label': 'Change Log', 'command': 'welcome:showchangelog'}
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user