Skip to content

Commit

Permalink
fix: [bluetooth] no menu entry when first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
itsXuSt committed Jan 23, 2024
1 parent 99743fc commit 069b3d4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@

#include <dfm-base/utils/dialogmanager.h>

#include <QTimer>

using namespace dfmplugin_utils;

void VirtualBluetoothPlugin::initialize()
{
// BluetoothManager::instance();
QTimer::singleShot(1000, this, [] {
fmInfo() << "start initialize bluetooth manager";
BluetoothManager::instance();
fmInfo() << "end initialize bluetooth manager";
});

dpfSlotChannel->connect("dfmplugin_utils", "slot_Bluetooth_IsAvailable", this, &VirtualBluetoothPlugin::bluetoothAvailable);
dpfSlotChannel->connect("dfmplugin_utils", "slot_Bluetooth_SendFiles", this, &VirtualBluetoothPlugin::sendFiles);
Expand Down

0 comments on commit 069b3d4

Please sign in to comment.