mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-14 14:25:52 +00:00
update submodule
update netctl-auto update interfaces
This commit is contained in:
@ -57,23 +57,6 @@ NetctlInterface::~NetctlInterface()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn autoEnableProfile
|
||||
*/
|
||||
InterfaceAnswer NetctlInterface::autoEnableProfile(const QString profile)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (netctlCommand == nullptr) {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Could not find library";
|
||||
return InterfaceAnswer::Error;
|
||||
}
|
||||
|
||||
netctlCommand->autoEnableProfile(profile);
|
||||
|
||||
return static_cast<InterfaceAnswer>(netctlCommand->autoIsProfileEnabled(profile));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @fn connectToEssid
|
||||
*/
|
||||
@ -300,6 +283,7 @@ netctlInformation NetctlInterface::information()
|
||||
|
||||
netctlInformation info;
|
||||
info.netctlAuto = netctlCommand->isNetctlAutoRunning();
|
||||
info.netctlAutoEnabled = netctlCommand->isNetctlAutoEnabled();
|
||||
info.netctlProfiles = netctlCommand->getProfileList();
|
||||
if (info.netctlAuto) info.netctlAutoProfiles = netctlCommand->getProfileListFromNetctlAuto();
|
||||
|
||||
|
Reference in New Issue
Block a user