mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
hyprpm: refuse adding a new repo without update
This commit is contained in:
@@ -159,6 +159,11 @@ bool CPluginManager::addNewPluginRepo(const std::string& url, const std::string&
|
|||||||
DataState::updateGlobalState(GLOBALSTATE);
|
DataState::updateGlobalState(GLOBALSTATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GLOBALSTATE.headersHashCompiled.empty()) {
|
||||||
|
std::println("\n{}", failureString("Cannot find headers in the global state. Try running hyprpm update first."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
std::cout << Colors::GREEN << "✔" << Colors::RESET << Colors::RED << " adding a new plugin repository " << Colors::RESET << "from " << url << "\n " << Colors::RED
|
std::cout << Colors::GREEN << "✔" << Colors::RESET << Colors::RED << " adding a new plugin repository " << Colors::RESET << "from " << url << "\n " << Colors::RED
|
||||||
<< "MAKE SURE" << Colors::RESET << " that you trust the authors. " << Colors::RED << "DO NOT" << Colors::RESET
|
<< "MAKE SURE" << Colors::RESET << " that you trust the authors. " << Colors::RED << "DO NOT" << Colors::RESET
|
||||||
<< " install random plugins without verifying the code and author.\n "
|
<< " install random plugins without verifying the code and author.\n "
|
||||||
|
@@ -286,8 +286,8 @@ void CX11DataDevice::forceCleanupDnd() {
|
|||||||
if (m_lastOffer) {
|
if (m_lastOffer) {
|
||||||
auto source = m_lastOffer->getSource();
|
auto source = m_lastOffer->getSource();
|
||||||
if (source) {
|
if (source) {
|
||||||
source->cancelled();
|
|
||||||
source->sendDndFinished();
|
source->sendDndFinished();
|
||||||
|
source->cancelled();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user