[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which commands are executed by the "bluetooth enable" button?



Il 03/05/20 00:09, Marco Möller ha scritto:

 the question how KDE is achieving to unblock the soft block on bluetooth (even without this package being installed) did not become clarified to me.  :-(

I'm not a qml expert, but it should do in this way(from Toolbar.qml):

------------------------------------------------------------------------------------

        var enable = !btManager.bluetoothOperational;
        btManager.bluetoothBlocked = !enable;

        for (var i = 0; i < btManager.adapters.length; ++i) {
            var adapter = btManager.adapters[i];
            adapter.powered = enable;
        }
------------------------------------------------------------------------------------

-- 
Saluti, Luca Pedrielli 

Reply to: