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
8b6af614
Commit
8b6af614
authored
Jul 16, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed reloading the config sometimes segfauling
Caused by "app.config_reload" in the control center. Changing a value, reloading, and then chaning it again and reloading -> segfault
parent
fd7896e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
configModel.vala
src/configModel/configModel.vala
+2
-3
main.vala
src/main.vala
+1
-2
No files found.
src/configModel/configModel.vala
View file @
8b6af614
...
...
@@ -300,8 +300,6 @@ namespace SwayNotificationCenter {
#endif
public
class
ConfigModel
:
Object
,
Json
.
Serializable
{
private
static
ConfigModel
?
previous_config
=
null
;
private
static
ConfigModel
?
_instance
=
null
;
private
static
string
_path
=
""
;
...
...
@@ -352,7 +350,8 @@ namespace SwayNotificationCenter {
critical
(
e
.
message
);
m
=
new
ConfigModel
();
}
previous_config
=
_instance
;
ConfigModel
?
previous_config
=
_instance
;
_instance
=
m
;
_path
=
path
;
...
...
src/main.vala
View file @
8b6af614
...
...
@@ -15,8 +15,7 @@ namespace SwayNotificationCenter {
static
bool
activated
=
false
;
public
signal
void
config_reload
(
owned
ConfigModel
?
old_config
,
ConfigModel
new_config
);
public
signal
void
config_reload
(
ConfigModel
?
old_config
,
ConfigModel
new_config
);
public
Swaync
()
{
Object
(
...
...
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