r/tasker • • 1d ago

Quick task settings keeps reverting to default?

Post image

Trying to make a dns toggle with filtering. Everything works so far but when I got to preferences and assing the task to quick settings task 2 (because 1 says toggle and was being weird) and tap the button it runs once and resets the preference to default so the button then does nothing again???

(Also if you know how to make the menu look better that'd help too since "don't ask again" keeps getting cut off.)

1 Upvotes

5 comments sorted by

1

u/DickBrainTime 1d ago

Your screenshot has "Set Up Quick Setting Tile" actions after both Dns.On and Dns.Off. I'd check those first. That action changes the tile setup when the task runs. Tasker's guide says a tile with no click Task or Command goes back to its default behavior.

As a test, disable those two setup actions, assign your DNS toggle to Quick Settings Task 2 again, and tap the tile twice. If the assignment now sticks, one of those setup actions is probably overwriting it. When you turn it back on, make sure its short-click Task is set to your DNS toggle, not left blank.

For the menu text getting cut off, I'd shorten the option label while testing. That part seems separate from the tile reset.

1

u/Khodexian 1d ago

If I turn them both off it works fine so yea it's one of those. The goal of those is to toggle the state of the quick settings button so I can tell if it's on or off by checking the quick settings panel button.

1

u/DickBrainTime 1d ago

Nice, that confirms the two setup actions are changing the assignment. You can keep them for the tile's on/off appearance. In BOTH "Set Up Quick Setting Tile" actions, choose tile 2 and set the short-click Task to your DNS toggle task. Then set Status to Active in the DNS-on branch and Inactive in the DNS-off branch. Don't leave the click Task/Command empty in either action, or it can reset the tile's click behavior.

After that, run the toggle twice from Quick Settings and check both the DNS change and the tile color. If the assignment still disappears, a screenshot of all fields in those two setup actions (especially Task, Command and Status) should help narrow it down.

1

u/Khodexian 1d ago

That's already what I had just without the task being inside it since it was already handled with logic outside it. Ahhhh I just figured it out.

In quick settings tile there is a "task" field and whatever that is set to is what it sets the selected (in this case 2nd) slot to.

I figured it out by trying to change them to dns_on and off and when I used the button it changed preferences to dns_off. So I changed them both to dns_toggle and re-enabled the separate dns_on and off steps outside the quick settings.

Now I just wish it would close my notification tray when I tap it and the menu looked better.

2

u/Exciting-Compote5680 1d ago edited 1d ago

Try the 'Status Bar' action with value 'Collapsed'. As for the 'Menu' layout, as I understand it, you can create a Scene (v1) with a Menu element first and use that layout there. Or if you don't need an icon or, use a 'List Dialog' instead. Or if you want to make it pretty and don't mind the extra work, an AutoTools dialog or Scene v2.