fix warning
This commit is contained in:
parent
0c549980db
commit
d4c219bff6
1 changed files with 5 additions and 5 deletions
|
@ -6,8 +6,8 @@ namespace Deskcandy {
|
||||||
|
|
||||||
private Gtk.Window window;
|
private Gtk.Window window;
|
||||||
private Gtk.Window desktop_window;
|
private Gtk.Window desktop_window;
|
||||||
|
private BaseCandy[] _candies;
|
||||||
public BaseCandy[] candies { get; private set; }
|
|
||||||
public bool enabled { get; set; }
|
public bool enabled { get; set; }
|
||||||
|
|
||||||
public Application() {
|
public Application() {
|
||||||
|
@ -18,15 +18,15 @@ namespace Deskcandy {
|
||||||
this.add_action(toggle_enabled);
|
this.add_action(toggle_enabled);
|
||||||
this.set_up_actions();
|
this.set_up_actions();
|
||||||
|
|
||||||
this.candies = { new XScreensaver(), new Mpv() };
|
this._candies = { new XScreensaver(), new Mpv() };
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void initialize_async() {
|
private async void initialize_async() {
|
||||||
foreach (var candy in this.candies) {
|
foreach (var candy in this._candies) {
|
||||||
yield candy.initialize();
|
yield candy.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
initialized(this.candies[1]);
|
initialized(this._candies[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void on_toggle_enabled() {
|
private void on_toggle_enabled() {
|
||||||
|
|
Loading…
Reference in a new issue