Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
c5372594
Verified
Commit
c5372594
authored
Apr 18, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluetooth: debounce device list reloads
parent
cf789064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
bluetoothProxy.vala
src/controlCenter/widgets/quickSettings/bluetoothProxy.vala
+14
-2
No files found.
src/controlCenter/widgets/quickSettings/bluetoothProxy.vala
View file @
c5372594
...
...
@@ -43,6 +43,7 @@ namespace XimperShellNotificationCenter.Widgets {
public
ObjectPath
?
connecting_device
=
null
;
private
DBusConnection
?
connection
=
null
;
private
uint
reload_timeout
=
0
;
private
static
BluetoothProxy
?
_instance
=
null
;
...
...
@@ -239,11 +240,22 @@ namespace XimperShellNotificationCenter.Widgets {
state_changed
();
}
private
void
schedule_reload_devices
()
{
if
(
reload_timeout
!=
0
)
{
Source
.
remove
(
reload_timeout
);
}
reload_timeout
=
Timeout
.
add
(
200
,
()
=>
{
reload_timeout
=
0
;
load_devices
.
begin
();
return
Source
.
REMOVE
;
});
}
private
void
on_interfaces_changed
(
DBusConnection
conn
,
string
?
sender
,
string
path
,
string
iface
,
string
signal
,
Variant
params
)
{
load_devices
.
begin
();
schedule_reload_devices
();
}
private
void
on_device_props_changed
(
...
...
@@ -256,7 +268,7 @@ namespace XimperShellNotificationCenter.Widgets {
return
;
}
if
(
child
.
get_string
()
==
"org.bluez.Device1"
)
{
load_devices
.
begin
();
schedule_reload_devices
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment