DuplicateSongDetector: Only ever create one source
authorBertrand Lorentz <bertrand.lorentz@gmail.com>
Thu, 25 Aug 2011 19:11:53 +0000 (21:11 +0200)
committerBertrand Lorentz <bertrand.lorentz@gmail.com>
Thu, 25 Aug 2011 19:11:53 +0000 (21:11 +0200)
commit58f320a6f2d7e8d5d209a46081197129cbd3568c
treea166e3668b49bf2fcd2f6d74c6f429b6578ed951
parentdc584a7099aa3c678cc4ef3ef704b0c74e286067
DuplicateSongDetector: Only ever create one source

Just reuse the existing instance if the "Detect Duplicate Songs"
action is activated a second time, set it as active and reload it.

This also remove some duplicated code by calling into ReloadWindow
instead of implementing the query in two different places.
src/DuplicateSongDetector/Banshee.DuplicateSongDetector/DuplicateSongDetectorAction.cs
src/DuplicateSongDetector/Banshee.DuplicateSongDetector/SongDuplicateView.cs