mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(launcher) cleanup dead code
This commit is contained in:
@@ -216,7 +216,7 @@ See [CONFIG.md](/mnt/storage/GitHub/noctalia-dev/Nextalia/CONFIG.md) for the ful
|
||||
- [ ] Desktop widgets
|
||||
- [ ] Shell update checker
|
||||
- [ ] Calendar integration
|
||||
- [ ] Plugin system
|
||||
- [ ] Plugin system (Luau)
|
||||
|
||||
### Controls (`src/ui/controls/`)
|
||||
|
||||
@@ -225,6 +225,7 @@ See [CONFIG.md](/mnt/storage/GitHub/noctalia-dev/Nextalia/CONFIG.md) for the ful
|
||||
- [ ] Grid view
|
||||
- [ ] Context menu
|
||||
- [ ] Color picker
|
||||
- [ ] File and folder picker <- or use system dialog ?
|
||||
|
||||
### Widgets
|
||||
|
||||
|
||||
@@ -418,7 +418,6 @@ void Application::initUi() {
|
||||
launcherPanel->addProvider(std::make_unique<AppProvider>(&m_wayland));
|
||||
launcherPanel->addProvider(std::make_unique<MathProvider>(&m_clipboardService));
|
||||
launcherPanel->addProvider(std::make_unique<EmojiProvider>(&m_clipboardService));
|
||||
launcherPanel->setClipboard(&m_clipboardService);
|
||||
m_panelManager.registerPanel("launcher", std::move(launcherPanel));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,10 +28,6 @@ constexpr float kIconSize = 32.0f;
|
||||
|
||||
LauncherPanel::LauncherPanel() = default;
|
||||
|
||||
void LauncherPanel::setClipboard(ClipboardService* clipboard) {
|
||||
m_clipboard = clipboard;
|
||||
}
|
||||
|
||||
void LauncherPanel::addProvider(std::unique_ptr<LauncherProvider> provider) {
|
||||
provider->initialize();
|
||||
m_providers.push_back(std::move(provider));
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "launcher/usage_tracker.h"
|
||||
#include "shell/panel/panel.h"
|
||||
|
||||
class ClipboardService;
|
||||
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -25,7 +23,6 @@ public:
|
||||
LauncherPanel();
|
||||
|
||||
void addProvider(std::unique_ptr<LauncherProvider> provider);
|
||||
void setClipboard(ClipboardService* clipboard);
|
||||
|
||||
void create() override;
|
||||
void layout(Renderer& renderer, float width, float height) override;
|
||||
@@ -51,7 +48,6 @@ private:
|
||||
std::vector<std::unique_ptr<LauncherProvider>> m_providers;
|
||||
std::vector<LauncherResult> m_results;
|
||||
UsageTracker m_usageTracker;
|
||||
ClipboardService* m_clipboard = nullptr;
|
||||
|
||||
Flex* m_container = nullptr;
|
||||
Input* m_input = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user