Skip to content

Commit

Permalink
whew, all done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Jul 29, 2019
1 parent 5d4fa6c commit a1c95d2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ namespace Niu {
dbusserver = DBusServer.get_default();
var settings = AppSettings.get_default ();


if (settings.pomodoro) {
set_timeouts ();
}
settings.changed.connect (() => {
if (settings.pomodoro) {
set_timeouts ();
}
});

updater.update.connect ((res) => {
dbusserver.update (res);
dbusserver.indicator_state (settings.indicator_state);
if (res.po) {
set_timeouts ();
settings.changed.connect (() => {
set_timeouts ();
});
}
});
dbusserver.quit.connect (() => application.quit());
dbusserver.show.connect (() => {
Expand Down

0 comments on commit a1c95d2

Please sign in to comment.