Skip to content

Commit

Permalink
Merge pull request #28 from radiovisual/master
Browse files Browse the repository at this point in the history
focus rulers after global theme change. Fixes #27
  • Loading branch information
mikaa123 committed Apr 14, 2016
2 parents 02e9d53 + d17a880 commit 7236f2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ ipc.on('settings-changed', () => {
// Update the themes of all open rulers on default theme change
ipc.on('apply-default-theme', (evt, data) => {
rulers.forEach(ruler => ruler.send('update-theme', {filename: data.filename}));

// Focus all rulers temporarily to apply the changes.
// See: https://github.com/mikaa123/linear/issues/27
setTimeout(() => {
rulers.forEach(ruler => ruler.focus());
}, 300);
});

// Duplicate a given ruler.
Expand Down

0 comments on commit 7236f2c

Please sign in to comment.