From afa77f9580b0c6c9dc432ff841d5d33022e2f7dc Mon Sep 17 00:00:00 2001 From: OldManAlpha <60587722+OldManAlpha@users.noreply.github.com> Date: Wed, 25 Jun 2025 22:47:31 -0700 Subject: [PATCH] Reference current account data --- core/slash.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/slash.lua b/core/slash.lua index 27559fa..bb8ff35 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -4,7 +4,6 @@ local T = require 'T' local aux = require 'aux' local info = require 'aux.util.info' local post = require 'aux.tabs.post' -local gui = require 'aux.gui' function status(enabled) return (enabled and aux.color.green'on' or aux.color.red'off') @@ -91,8 +90,8 @@ function SlashCmdList.AUX(command) aux.print('- clear item cache') aux.print('- populate wdb') aux.print('- sharing [' .. status(aux.account_data.sharing) .. ']') - aux.print('- theme [' .. aux.color[gui.is_blizzard() and 'red' or 'green']('default') .. ' | ' .. - aux.color[gui.is_blizzard() and 'green' or 'red']('blizzard') .. ']') + aux.print('- theme [' .. aux.color[aux.account_data.theme == 'default' and 'green' or 'red']('default') .. ' | ' .. + aux.color[aux.account_data.theme == 'blizzard' and 'green' or 'red']('blizzard') .. ']') aux.print('- show hidden [' .. status(aux.account_data.showhidden) .. ']') end end \ No newline at end of file