Added edit url button

This commit is contained in:
thezephyrsong
2026-06-17 13:06:39 +10:00
parent d599665f69
commit d2b6ec5c60
138 changed files with 1901 additions and 1972 deletions
+8
View File
@@ -797,3 +797,11 @@ void Addon::delegate(QString taskname, auto work, auto callback)
{
delegate(taskname, work, callback, false);
}
void Addon::setRemoteUrl(QString newUrl)
{
delegate("Changing Remote URL", [this, newUrl]() {
check_git_return(git_remote_set_url(m_repo.get(), m_remote.toLocal8Bit(), newUrl.toLocal8Bit()));
}, [this]() {
fetchRemote(m_remote);
});
}