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
03a5a6c2
Verified
Commit
03a5a6c2
authored
Apr 18, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpris: stop position timer when control center is hidden
parent
171fe2e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mpris.vala
src/controlCenter/widgets/mpris/mpris.vala
+6
-0
mpris_player.vala
src/controlCenter/widgets/mpris/mpris_player.vala
+8
-0
No files found.
src/controlCenter/widgets/mpris/mpris.vala
View file @
03a5a6c2
...
...
@@ -265,6 +265,12 @@ namespace XimperShellNotificationCenter.Widgets.Mpris {
carousel
.
get_nth_page
(
position
),
true
);
}
public
override
void
on_cc_visibility_change
(
bool
val
)
{
players
.
foreach
((
name
,
player
)
=>
{
player
.
set_cc_visible
(
val
);
});
}
private
bool
is_blacklisted
(
string
name
)
{
foreach
(
string
blacklistedPattern
in
mpris_config
.
blacklist
)
{
if
(
blacklistedPattern
==
null
||
blacklistedPattern
.
length
==
0
)
{
...
...
src/controlCenter/widgets/mpris/mpris_player.vala
View file @
03a5a6c2
...
...
@@ -221,6 +221,14 @@ namespace XimperShellNotificationCenter.Widgets.Mpris {
}
}
public
void
set_cc_visible
(
bool
visible
)
{
if
(
visible
)
{
sync_playback_timer
();
}
else
{
stop_position_timer
();
}
}
public
void
before_destroy
()
{
stop_position_timer
();
source
.
properties_changed
.
disconnect
(
...
...
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