mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-12 02:26:30 -05:00
Fix log toast
This commit is contained in:
@@ -114,8 +114,8 @@ export const plugin: PluginDefinition = {
|
||||
{
|
||||
label: 'Toggle Debug Logs',
|
||||
async onSelect(ctx) {
|
||||
const enableLogs = await ctx.store.get('enable_logs');
|
||||
await ctx.store.set('enable_logs', !enableLogs);
|
||||
const enableLogs = !(await ctx.store.get('enable_logs'));
|
||||
await ctx.store.set('enable_logs', enableLogs);
|
||||
await ctx.toast.show({
|
||||
message: `Debug logs ${enableLogs ? 'enabled' : 'disabled'}`,
|
||||
color: 'info',
|
||||
|
||||
Reference in New Issue
Block a user