Merge lp:~mblayman/entertainer/frontend-cleanup into lp:entertainer
Proposed by
Matt Layman
Status: | Merged |
---|---|
Approved by: | Paul Hummer |
Approved revision: | 345 |
Merged at revision: | not available |
Proposed branch: | lp:~mblayman/entertainer/frontend-cleanup |
Merge into: | lp:entertainer |
To merge this branch: | bzr merge lp:~mblayman/entertainer/frontend-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer | Approve | ||
Review via email: mp+3464@code.launchpad.net |
To post a comment you must log in.
This branch streamlines how the frontend and system tray icon are started. The system tray icon used to have some logic that would start the frontend, but since the icon is nothing more than a different interface to access some features of Entertainer, I've moved it into the FrontentClient. Also, the SystemTrayMessa geHandler was doing nothing. There was no interaction with the message bus and message proxy which is what message handlers are supposed to do, so the class was adding no value. Therefore, I've removed it entirely. Additionally, nothing was being displayed by notifications except for debug messages, so notifications are gone now too. If we actually develop a feature that uses them in the future, we can easily bring them back.
I've also taken the simple action of moving the main loop into a different method. This should allow us to *potentially* test the FrontendClient class (although I think that there is still work to done on how to mock the backend connection that is uses).
Hopefully, this branch will greatly clarify the design of the frontend package because I'm sure it was pretty unclear to a casual observer. Refactoring is fun! :)