Ignore:
Timestamp:
04/19/23 18:47:14 (19 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

CEF is initialized with a delay on Linux to avoid it crashing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/cef.py

    r1084 r1091  
    204204def _initializeCEF(args, initializedCallback):
    205205    """Perform the actual initialization of CEF using the given arguments."""
     206    if os.name=="nt":
     207        _initializeCEF1(args, initializedCallback)
     208    else:
     209        GObject.timeout_add(100, _initializeCEF1, args, initializedCallback)
     210
     211#------------------------------------------------------------------------------
     212
     213def _initializeCEF1(args, initializedCallback):
     214    """Perform the actual initialization of CEF using the given arguments."""
    206215    print("Initializing CEF with args:", args)
    207216
     
    239248    print("Initialized, executing callback...")
    240249    initializedCallback()
     250    return False
    241251
    242252#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.