TranslucentTB / TranslucentTB

A lightweight utility that makes the Windows taskbar translucent/transparent.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: application shutdown after adding rules into the settings.json

starfish233e opened this issue · comments

Please check for a duplicate first

  • I have checked the issue tracker if my bug has already been fixed or answered in another (possibly closed) issue.

Steps to reproduce the issue

open the task bar and click the TB application icon, choose "advanced settings" --> "edit setting" , than edit the "rules" into :
"rules": {
"window_class": {},
"window_title": {},
"process_name": ["Code.exe"]
here is the settings.json

Expected results

When I save the setting, it will not provide warning. And then when I open the Microsoft Visual Studio Code, the task bar should be opaque, and it will stay transparent when I make it full-screen.

Actual results

The application shutdown, and it reports the wrong log.

屏幕截图 2024-06-04 173658

Windows version

Windows 11 SV2 (builds 22621-22622)

Other details

No response

Relevant log output

No response

The error code is correct - rules aren't an array but a keyed object. You want something like this:

"rules": {
  "process_name": {
    "Code.exe": {
      "accent": "opaque"
    }
  }
}

Because the config file is not in a valid format, TTB rejects it and returns to default settings.