mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
32 lines
590 B
C++
32 lines
590 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include "utility.h"
|
|
#include "NavRemove.h"
|
|
#include "../ConfigIni.h"
|
|
|
|
using namespace NCTools;
|
|
|
|
extern bool g_alreadyRunning;
|
|
|
|
HRESULT NAVREMOVE_API RemoveNavigationPaneEntries()
|
|
{
|
|
if (g_alreadyRunning) {
|
|
return S_OK;
|
|
}
|
|
|
|
// Config
|
|
ConfigIni ini;
|
|
|
|
if (!ini.load()) {
|
|
return HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER);
|
|
}
|
|
|
|
Utility::removeNavigationPaneEntries(ini.getAppName());
|
|
|
|
return S_OK;
|
|
}
|