Skip to content

Commit

Permalink
fix: Pop up authentication box
Browse files Browse the repository at this point in the history
as title.

pms: BUG-302081
  • Loading branch information
robertkill authored and deepin-bot[bot] committed Jan 23, 2025
1 parent 00aff2b commit 0d85df8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

using namespace accountnetwork::sessionservice;

#define SYS_NETWORK_SERVICE "com.deepin.system.Network"
#define SYS_NETWORK_PATH "/com/deepin/system/Network"
#define SYS_NETWORK_INTERFACE "com.deepin.system.Network"
#define SYS_NETWORK_SERVICE "org.deepin.dde.Network1"
#define SYS_NETWORK_PATH "/org/deepin/dde/Network1"
#define SYS_NETWORK_INTERFACE "org.deepin.dde.Network1"

NetworkActivator::NetworkActivator(AccountNetworkConfig *config, QObject *parent)
: QObject(parent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class AccessPointInfo
AccessPoints *m_accessPoint;
};

#define SYS_NETWORK_INTER "com.deepin.system.Network"
#define SYS_NETWORK_PATH "/com/deepin/system/Network"
#define SYS_NETWORK_INTER "org.deepin.dde.Network1"
#define SYS_NETWORK_PATH "/org/deepin/dde/Network1"

DeviceManagerRealize::DeviceManagerRealize(NetworkManager::Device::Ptr device, QObject *parent)
: NetworkDeviceRealize(parent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <NetworkManagerQt/ConnectionSettings>
#include <NetworkManagerQt/VpnSetting>

#define NETWORKSERVICE "com.deepin.system.Network"
#define NETWORKPATH "/com/deepin/system/Network"
#define NETWORKINTERFACE "com.deepin.system.Network"
#define NETWORKSERVICE "org.deepin.dde.Network1"
#define NETWORKPATH "/org/deepin/dde/Network1"
#define NETWORKINTERFACE "org.deepin.dde.Network1"
#define NETWORKPROPERTIESINTERFACE "org.freedesktop.DBus.Properties"
#define VPNENABLED "VpnEnabled"

Expand Down Expand Up @@ -292,7 +292,7 @@ void VPNController_NM::onPropertiesChanged(const QString &interfaceName, const Q

void VPNController_NM::setEnabled(const bool enabled)
{
// 调用com.deepin.system.Network的相关接口来设置VPN
// 调用org.deepin.dde.Network1的相关接口来设置VPN
QDBusInterface dbusInter(NETWORKSERVICE, NETWORKPATH, NETWORKINTERFACE, QDBusConnection::systemBus());
dbusInter.setProperty(VPNENABLED, enabled);
// 如果开启VPN,则让其自动连接
Expand Down

0 comments on commit 0d85df8

Please sign in to comment.