mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
minor refactor
This commit is contained in:
@@ -15,7 +15,7 @@ EditChain::~EditChain() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void EditChain::onStart(QSharedPointer<NekoRay::ProxyEntity> _ent) {
|
||||
void EditChain::onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) {
|
||||
this->ent = _ent;
|
||||
auto bean = this->ent->ChainBean();
|
||||
|
||||
@@ -45,7 +45,7 @@ void EditChain::on_select_profile_clicked() {
|
||||
}
|
||||
|
||||
void EditChain::AddProfileToListIfExist(int profileId) {
|
||||
auto _ent = NekoRay::profileManager->GetProfile(profileId);
|
||||
auto _ent = NekoGui::profileManager->GetProfile(profileId);
|
||||
if (_ent != nullptr && _ent->type != "chain") {
|
||||
auto wI = new QListWidgetItem();
|
||||
wI->setData(114514, profileId);
|
||||
@@ -64,7 +64,7 @@ void EditChain::AddProfileToListIfExist(int profileId) {
|
||||
}
|
||||
|
||||
void EditChain::ReplaceProfile(ProxyItem *w, int profileId) {
|
||||
auto _ent = NekoRay::profileManager->GetProfile(profileId);
|
||||
auto _ent = NekoGui::profileManager->GetProfile(profileId);
|
||||
if (_ent != nullptr && _ent->type != "chain") {
|
||||
w->item->setData(114514, profileId);
|
||||
w->ent = _ent;
|
||||
|
||||
Reference in New Issue
Block a user