fix warning

This commit is contained in:
Vivianne 2022-03-18 23:56:05 -07:00
parent 0c549980db
commit d4c219bff6

View file

@ -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() {