File tree Expand file tree Collapse file tree
pyrevitlib/pyrevit/interop Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,7 +176,12 @@ def is_synced(path):
176176 # ADC uses translated property names so
177177 # check status property by its type "LocalState"
178178 # see https://github.com/eirannejad/pyRevit/issues/1152
179- prop_val = _get_item_property_id_value (adc , drive , item , 'LocalState' )
179+ # ADC version 15 changed property_id_value
180+ # see https://github.com/eirannejad/pyRevit/issues/1371
181+ prop_val = _get_item_property_id_value (adc , drive , item , 'DesktopConnector.Core.LocalState' )
182+ if prop_val is None :
183+ # version older than ADC 15
184+ prop_val = _get_item_property_id_value (adc , drive , item , 'LocalState' )
180185 # possible values, 'Cached', 'Stale', 'Modified'
181186 # .Value is not translated
182187 return prop_val .Value == 'Cached' or prop_val .Value == 'Synced'
You can’t perform that action at this time.
0 commit comments