ynput / ayon-core

Apache License 2.0
25 stars 31 forks source link

Launcher tool: Fix view update #528

Closed iLLiCiTiT closed 3 months ago

iLLiCiTiT commented 3 months ago

Changelog Description

Call update on viewport instead on view.

Additional info

Method update on view does update single index which should be passed in, but it is not. The bug was discovered with PySide6.

Traceback

Traceback (most recent call last):
  File ".\client\ayon_core\tools\launcher\ui\actions_widget.py", line 362, in _on_model_refresh
    self._view.update()
  TypeError: QListView.update() takes exactly one argument (0 given)

Testing notes:

You would have to use macOs or force using PySide6 in AYON launcher (for other platforms).

  1. Start ayon launcher with console.
  2. In tray open Launcher tool.
  3. Select project and change context few times.
  4. The traceback should not be raised.