mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 06:05:41 -04:00
FullscreenUI: Fix folder changes not applying immediately
This commit is contained in:
parent
c2e15b0078
commit
fb9608a9cf
@ -306,16 +306,6 @@ void QtHost::SetDataDirectory()
|
||||
EmuFolders::DataRoot = EmuFolders::AppRoot;
|
||||
}
|
||||
|
||||
#if 0
|
||||
void QtHost::UpdateFolders()
|
||||
{
|
||||
// TODO: This should happen with the VM thread paused.
|
||||
auto lock = Host::GetSettingsLock();
|
||||
EmuFolders::LoadConfig(*s_base_settings_interface.get());
|
||||
EmuFolders::EnsureFoldersExist();
|
||||
}
|
||||
#endif
|
||||
|
||||
void Host::LoadSettings(SettingsInterface& si, std::unique_lock<std::mutex>& lock)
|
||||
{
|
||||
CommonHost::LoadSettings(si, lock);
|
||||
|
@ -2228,7 +2228,7 @@ void FullscreenUI::DrawFolderSetting(SettingsInterface* bsi, const char* title,
|
||||
bsi->SetStringValue(section.c_str(), key.c_str(), relative_path.c_str());
|
||||
SetSettingsChanged(bsi);
|
||||
|
||||
// Host::RunOnCPUThread(&Host::Internal::UpdateEmuFolders);
|
||||
Host::RunOnCPUThread(&EmuFolders::Update);
|
||||
s_cover_image_map.clear();
|
||||
|
||||
CloseFileSelector();
|
||||
|
Loading…
x
Reference in New Issue
Block a user