diff --git a/src/application.vala b/src/application.vala index 835ac5a..8d4801a 100644 --- a/src/application.vala +++ b/src/application.vala @@ -6,8 +6,8 @@ namespace Deskcandy { private Gtk.Window window; private Gtk.Window desktop_window; - - public BaseCandy[] candies { get; private set; } + private BaseCandy[] _candies; + public bool enabled { get; set; } public Application() { @@ -18,15 +18,15 @@ namespace Deskcandy { this.add_action(toggle_enabled); this.set_up_actions(); - this.candies = { new XScreensaver(), new Mpv() }; + this._candies = { new XScreensaver(), new Mpv() }; } private async void initialize_async() { - foreach (var candy in this.candies) { + foreach (var candy in this._candies) { yield candy.initialize(); } - initialized(this.candies[1]); + initialized(this._candies[1]); } private void on_toggle_enabled() {