You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop: Accessibility: Improve "change application layout" screen keyboard accessibility (#11718)
This commit is contained in:
@@ -203,6 +203,14 @@ export default class PluginService extends BaseService {
|
||||
return this.plugins_[id];
|
||||
}
|
||||
|
||||
public safePluginNameById(id: string) {
|
||||
if (!this.plugins_[id]) {
|
||||
return id;
|
||||
}
|
||||
|
||||
return this.pluginById(id).manifest?.name ?? 'Unknown';
|
||||
}
|
||||
|
||||
public viewControllerByViewId(id: string): ViewController|null {
|
||||
for (const [, plugin] of Object.entries(this.plugins_)) {
|
||||
if (plugin.hasViewController(id)) return plugin.viewController(id);
|
||||
|
||||
Reference in New Issue
Block a user