Skip to content

Commit

Permalink
Headerbar: Remove settings attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
naaando committed Feb 10, 2019
1 parent df6396c commit 72290c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/View/HeaderBar.vala
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
public class HeaderBar : Gtk.HeaderBar {
Settings settings = Application.settings;

public HeaderBar () {
title = "Pomodoro";
show_close_button = true;
Expand All @@ -11,7 +9,7 @@ public class HeaderBar : Gtk.HeaderBar {

Gtk.Widget create_sound_btn () {
var sound_btn = new MultiImageToggleButton.from_icon_names ("notification-symbolic", "notification-disabled-symbolic");
settings.bind ("emit-sound", sound_btn, "active", SettingsBindFlags.DEFAULT);
Application.settings.bind ("emit-sound", sound_btn, "active", SettingsBindFlags.DEFAULT);
return sound_btn;
}
}

0 comments on commit 72290c0

Please sign in to comment.