diff options
author | Aylur <[email protected]> | 2024-05-26 20:16:58 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-05-26 20:16:58 +0200 |
commit | 57a49504bfc6cdc8d34c5f9f968a12a06149e817 (patch) | |
tree | d3c4382acfa98f1d2a2b27cd42eb54b60a2c6437 | |
parent | ae2b733af5d4693534bec237e38c0a57716f4c37 (diff) |
fix(astal.vala): instance_name setter
-rw-r--r-- | src/astal.vala | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/astal.vala b/src/astal.vala index e8c3f75..70e42ca 100644 --- a/src/astal.vala +++ b/src/astal.vala @@ -4,7 +4,19 @@ public class Application : Gtk.Application { private SocketService service; private string socket; - public string instance_name { get; construct set; } + public new string application_id { + get { return base.application_id; } + set { base.application_id = value; } + } + + private string _instance_name; + public string instance_name { + get { return _instance_name; } + set { + application_id = "io.Astal." + value; + _instance_name = value; + } + } public List<Gtk.Window> windows { get { return get_windows(); } @@ -121,9 +133,6 @@ public class Application : Gtk.Application { if (instance_name == null) instance_name = "astal"; - if (application_id == null) - application_id = "io.Astal.".concat(instance_name); - shutdown.connect(() => { if (FileUtils.test(socket, GLib.FileTest.EXISTS)){ try { |