From 72f01e450b21ed5346c94f7736c4ac21787022a7 Mon Sep 17 00:00:00 2001 From: Lukasz Mastalerz Date: Mon, 20 Nov 2023 11:43:08 +0100 Subject: [PATCH] [BH-1815] Optimalize loading music files in relaxation Add relaxation list refresh after files added or deleted --- module-vfs/src/purefs/fs/notifier.cpp | 4 +-- .../ApplicationBellRelaxation.cpp | 33 +++++++++++++++++-- .../ApplicationBellRelaxation.hpp | 1 + .../model/RelaxationSongsModel.cpp | 9 +++-- .../model/RelaxationSongsModel.hpp | 1 + .../model/RelaxationSongsRepository.cpp | 6 +++- .../model/RelaxationSongsRepository.hpp | 1 + .../RelaxationMainWindowPresenter.cpp | 5 +++ .../RelaxationMainWindowPresenter.hpp | 2 ++ .../windows/RelaxationMainWindow.cpp | 1 + 10 files changed, 56 insertions(+), 7 deletions(-) diff --git a/module-vfs/src/purefs/fs/notifier.cpp b/module-vfs/src/purefs/fs/notifier.cpp index bf43afb390f6223d10aa5238b8ca4ea6c3b0bb3f..5eab84f0c66b3ea205df9752a2fef872c900373a 100644 --- a/module-vfs/src/purefs/fs/notifier.cpp +++ b/module-vfs/src/purefs/fs/notifier.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include #include @@ -109,7 +109,7 @@ namespace purefs::fs::internal svc->bus.sendUnicast(std::move(msg), svc->GetName()); } else { - LOG_WARN("Sent notification to the same thread is forbidded"); + LOG_WARN("Sending a notification to the same thread is forbidden"); } } } // namespace purefs::fs::internal diff --git a/products/BellHybrid/apps/application-bell-relaxation/ApplicationBellRelaxation.cpp b/products/BellHybrid/apps/application-bell-relaxation/ApplicationBellRelaxation.cpp index 5883dc4d0399650660a46fb03150bbc9f6248e0c..298d5eb96284ac433443016644847a0e59961b95 100644 --- a/products/BellHybrid/apps/application-bell-relaxation/ApplicationBellRelaxation.cpp +++ b/products/BellHybrid/apps/application-bell-relaxation/ApplicationBellRelaxation.cpp @@ -28,9 +28,16 @@ #include #include #include