mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +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()}
|
checked={this.wasVersionDismissed()}
|
||||||
onchange={this.dismissVersion}
|
onchange={this.dismissVersion}
|
||||||
/>
|
/>
|
||||||
Dismiss this Change Log
|
Want to Dismiss this Change Log?
|
||||||
</label>
|
</label>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,6 +45,10 @@ export default class WelcomePackage {
|
|||||||
atom.commands.add('atom-workspace', 'welcome:show', () => this.show())
|
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')) {
|
if (atom.config.get('welcome.showOnStartup')) {
|
||||||
await this.show();
|
await this.show();
|
||||||
this.reporterProxy.sendEvent('show-on-initial-load');
|
this.reporterProxy.sendEvent('show-on-initial-load');
|
||||||
@ -56,7 +60,7 @@ export default class WelcomePackage {
|
|||||||
// Usually getVersion Returns something along MAJOR.MINOR.PATCH ARCH
|
// Usually getVersion Returns something along MAJOR.MINOR.PATCH ARCH
|
||||||
// So we will account for that when checking what version they have.
|
// 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]) {
|
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) {
|
consumeReporter(reporter) {
|
||||||
return this.reporterProxy.setReporter(reporter);
|
return this.reporterProxy.setReporter(reporter);
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
'label': 'Help'
|
'label': 'Help'
|
||||||
'submenu': [
|
'submenu': [
|
||||||
{'label': 'Welcome Guide', 'command': 'welcome:show'}
|
{'label': 'Welcome Guide', 'command': 'welcome:show'}
|
||||||
|
{'label': 'Change Log', 'command': 'welcome:showchangelog'}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user