Load album cover controller settings when album cover manager is opened

This commit is contained in:
Jonas Kvinge 2021-03-07 00:54:20 +01:00
parent b5bafbf23a
commit 5807bee23b
3 changed files with 1 additions and 11 deletions

View File

@ -1117,7 +1117,6 @@ void MainWindow::ReloadAllSettings() {
app_->playlist_manager()->playlist_container()->ReloadSettings();
app_->album_cover_loader()->ReloadSettings();
album_cover_choice_controller_->ReloadSettings();
if (cover_manager_.get()) cover_manager_->ReloadSettings();
context_view_->ReloadSettings();
file_view_->ReloadSettings();
queue_view_->ReloadSettings();

View File

@ -153,8 +153,6 @@ AlbumCoverManager::AlbumCoverManager(Application *app, CollectionBackend *collec
EnableCoversButtons();
ReloadSettings();
}
AlbumCoverManager::~AlbumCoverManager() {
@ -164,13 +162,6 @@ AlbumCoverManager::~AlbumCoverManager() {
}
void AlbumCoverManager::ReloadSettings() {
app_->album_cover_loader()->ReloadSettings();
album_cover_choice_controller_->ReloadSettings();
}
void AlbumCoverManager::Init() {
// View menu
@ -252,6 +243,7 @@ void AlbumCoverManager::showEvent(QShowEvent *e) {
if (!e->spontaneous()) {
LoadGeometry();
album_cover_choice_controller_->ReloadSettings();
Reset();
}

View File

@ -80,7 +80,6 @@ class AlbumCoverManager : public QMainWindow {
void Reset();
void Init();
void ReloadSettings();
void EnableCoversButtons();
void DisableCoversButtons();