You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Turn old plugin deprecation notices into errors
This commit is contained in:
@ -37,7 +37,7 @@ export default class JoplinViewsMenus {
|
||||
*/
|
||||
public async create(id: string, label: string, menuItems: MenuItem[], location: MenuItemLocation = MenuItemLocation.Tools) {
|
||||
if (!Array.isArray(menuItems)) {
|
||||
this.plugin.deprecationNotice('1.5', 'Creating a view without an ID is deprecated. To fix it, change your call to `joplin.views.menus.create("my-unique-id", ...)`');
|
||||
this.plugin.deprecationNotice('1.5', 'Creating a view without an ID is deprecated. To fix it, change your call to `joplin.views.menus.create("my-unique-id", ...)`', true);
|
||||
location = menuItems as any || MenuItemLocation.Tools;
|
||||
menuItems = label as any;
|
||||
label = id as any;
|
||||
|
Reference in New Issue
Block a user