Skip to content

frontend: Fix TBar slider doesn't change when set via api.#13116

Open
psyirius wants to merge 1 commit intoobsproject:masterfrom
obzessed:fix-frontend-tbar-value-sync-api
Open

frontend: Fix TBar slider doesn't change when set via api.#13116
psyirius wants to merge 1 commit intoobsproject:masterfrom
obzessed:fix-frontend-tbar-value-sync-api

Conversation

@psyirius
Copy link

@psyirius psyirius commented Feb 12, 2026

Description

Set the TBar value when it's not received from itself.
i.e: when TBar position is set via api: obs_frontend_set_tbar_position.

Motivation and Context

when TBar position is set via obs_frontend_set_tbar_position it calls OBSBasic::TBarChanged which is also the valueChanged signal handler of TBar.
Which in context of the signal handler shouln't set the value back.
but in context of calling externally (via api) we should set it.
so that the getter api obs_frontend_get_tbar_position which returns the value of tBar->value() will return a valid value.
Fixes: #11372

How Has This Been Tested?

set obs_frontend_set_tbar_position via plugin.
visually noticed the tbar moving.
return value verified using obs_frontend_get_tbar_position.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

psyirius added a commit to obzessed/obs-super-suite that referenced this pull request Feb 12, 2026
TBar works properly when this lands on upstream.
obsproject/obs-studio#13116
@psyirius psyirius changed the title frontend: Fix TBar slider doesn't change when set via api. #11372 frontend: Fix TBar slider doesn't change when set via api. Feb 12, 2026
psyirius added a commit to obzessed/obs-super-suite that referenced this pull request Feb 13, 2026
@psyirius psyirius force-pushed the fix-frontend-tbar-value-sync-api branch from 9557369 to 746b36a Compare February 13, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

obs_frontend_set_tbar_position() frontend API does not update the tbar slider in the UI

1 participant