mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fix checkstate enum conversion
This commit is contained in:
parent
77c19510f7
commit
4bbc1e3c9a
1 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ from ayon_core.style import (
|
|||
from ayon_core.resources import get_image_path
|
||||
from ayon_core.lib import Logger
|
||||
|
||||
from .constants import CHECKED_INT, UNCHECKED_INT
|
||||
from .constants import CHECKED_INT, UNCHECKED_INT, PARTIALLY_CHECKED_INT
|
||||
|
||||
log = Logger.get_logger(__name__)
|
||||
|
||||
|
|
@ -37,10 +37,10 @@ def checkstate_enum_to_int(state):
|
|||
if isinstance(state, int):
|
||||
return state
|
||||
if state == QtCore.Qt.Checked:
|
||||
return 0
|
||||
return CHECKED_INT
|
||||
if state == QtCore.Qt.PartiallyChecked:
|
||||
return 1
|
||||
return 2
|
||||
return PARTIALLY_CHECKED_INT
|
||||
return UNCHECKED_INT
|
||||
|
||||
|
||||
def center_window(window):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue