mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
PowerToys interface: remove powertoys events and system_menu_helper functionality (#5323)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include <interface/lowlevel_keyboard_event_data.h>
|
||||
#include <interface/win_hook_event_data.h>
|
||||
#include <settings_objects.h>
|
||||
#include <common.h>
|
||||
#include "powerpreview.h"
|
||||
@@ -49,11 +47,6 @@ const wchar_t* PowerPreviewModule::get_name()
|
||||
return m_moduleName.c_str();
|
||||
}
|
||||
|
||||
const wchar_t** PowerPreviewModule::get_events()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Return JSON with the configuration options.
|
||||
bool PowerPreviewModule::get_config(_Out_ wchar_t* buffer, _Out_ int* buffer_size)
|
||||
{
|
||||
@@ -89,7 +82,6 @@ bool PowerPreviewModule::get_config(_Out_ wchar_t* buffer, _Out_ int* buffer_siz
|
||||
thumbnailProvider->GetToggleSettingState());
|
||||
}
|
||||
|
||||
|
||||
return settings.serialize_to_buffer(buffer, buffer_size);
|
||||
}
|
||||
|
||||
@@ -182,12 +174,6 @@ bool PowerPreviewModule::is_enabled()
|
||||
return this->m_enabled;
|
||||
}
|
||||
|
||||
// Handle incoming event, data is event-specific
|
||||
intptr_t PowerPreviewModule::signal_event(const wchar_t* name, intptr_t data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Load the settings file.
|
||||
void PowerPreviewModule::init_settings()
|
||||
{
|
||||
@@ -207,7 +193,6 @@ void PowerPreviewModule::init_settings()
|
||||
{
|
||||
thumbnailProvider->LoadState(settings);
|
||||
}
|
||||
|
||||
}
|
||||
catch (std::exception const& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user