From 015d6065f09dfd2898137a6545dc63ee79d91a3e Mon Sep 17 00:00:00 2001 From: Digitalone1 Date: Fri, 29 Mar 2024 19:07:48 +0100 Subject: [PATCH] prepare the presets menu builder with the overlay for empty presets list --- data/ui/presets_menu.ui | 150 +++++++++++++++++++++++----------------- src/presets_manager.cpp | 2 - 2 files changed, 85 insertions(+), 67 deletions(-) diff --git a/data/ui/presets_menu.ui b/data/ui/presets_menu.ui index c437dede8..87d3735a7 100644 --- a/data/ui/presets_menu.ui +++ b/data/ui/presets_menu.ui @@ -175,77 +175,97 @@ vertical 12 - - - start - 1 - Search - - Search Community Preset - - - + + + + + vertical + 12 + + + start + 1 + Search + + Search Community Preset + + + - - - 1 - 1 - - - 1 - 1 - 1 - 1 - - - 1 - 1 - 1 - - - - - - - 1 + + + 1 + 1 + + + 1 + 1 + 1 + 1 + + + 1 + 1 + 1 + + + + + + + 1 - - - + + + - - - - - - - + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + - - Community Presets List - - - - - - - + + Community Presets List + + + + + + + + + + + + + + 0 + system-software-install-symbolic + No Community Presets Installed + Community Presets packages can be installed from Flatpak or the repository of your favorite distribution. + + + + diff --git a/src/presets_manager.cpp b/src/presets_manager.cpp index f36a18a76..69209ba8a 100644 --- a/src/presets_manager.cpp +++ b/src/presets_manager.cpp @@ -749,8 +749,6 @@ void PresetsManager::import_from_community_package(const PresetType& preset_type util::warning(p.string() + " does not exist! Please reload the community preset list"); return; - - continue; } if (!std::filesystem::is_regular_file(p)) {