Skip to content

Commit a6d07c0

Browse files
committed
v2.16.11
1 parent 88bd6ab commit a6d07c0

File tree

13 files changed

+43
-25
lines changed

13 files changed

+43
-25
lines changed

client/common/changelog.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
2.16.11 (18/07/2025)
2+
MacOS:
3+
* Fix installer icon does not display for some screen resolutions/scale factors. #1056
4+
5+
6+
2.16.10 (17/07/2025)
7+
Windows:
8+
* Improved installer icon. #1056
9+
MacOS:
10+
* Improved installer icon. #1056
11+
12+
13+
2.16.9 (15/07/2025)
14+
All:
15+
* Fixed various issues with the network display on connect screen. #1417
16+
Windows:
17+
* Fixed network may not show up in Network Options. #1417
18+
19+
120
2.16.8 (10/07/2025)
221
All:
322
* Improved various issues with the new UI (e.g. colors, external config mode, keyboard handling in locations) #1417 #1418 #1421

client/common/utils/network_utils/network_utils_win.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,12 @@ QVector<types::NetworkInterface> NetworkUtils_win::currentNetworkInterfaces(bool
532532
networkInterface.networkOrSsid = itRow.interfaceName;
533533
}
534534

535+
AdapterAddress aa = tableRowByIndex(getAdapterAddressesTable(), ia.index);
536+
if (aa.valid) {
537+
networkInterface.interfaceName = aa.friendlyName;
538+
networkInterface.friendlyName = networkInterface.interfaceName;
539+
}
540+
535541
IfTable2Row it2Row = tableRowByIndex(getIfTable2(), ia.index);
536542
if (!it2Row.valid) {
537543
// Should never happen
@@ -544,6 +550,10 @@ QVector<types::NetworkInterface> NetworkUtils_win::currentNetworkInterfaces(bool
544550

545551
if (networkInterface.interfaceType == NETWORK_INTERFACE_ETH) {
546552
networkInterface.networkOrSsid = networkNameFromInterfaceGUID(it2Row.interfaceGuid);
553+
if (networkInterface.networkOrSsid.isEmpty()) {
554+
// Above function could not detect interface, probably virtual. Set it to the friendly name instead.
555+
networkInterface.networkOrSsid = networkInterface.friendlyName;
556+
}
547557
}
548558

549559
IpForwardRow ipfRow = tableRowByIndex(getIpForwardTable(), ia.index);
@@ -553,12 +563,6 @@ QVector<types::NetworkInterface> NetworkUtils_win::currentNetworkInterfaces(bool
553563
networkInterface.metric = ipfRow.metric;
554564
}
555565

556-
AdapterAddress aa = tableRowByIndex(getAdapterAddressesTable(), ia.index);
557-
if (aa.valid) {
558-
networkInterface.interfaceName = aa.friendlyName;
559-
networkInterface.friendlyName = networkInterface.interfaceName;
560-
}
561-
562566
networkInterfaces << networkInterface;
563567
}
564568

client/common/version/windscribe_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
#define WINDSCRIBE_MAJOR_VERSION 2
44
#define WINDSCRIBE_MINOR_VERSION 16
5-
#define WINDSCRIBE_BUILD_VERSION 8
5+
#define WINDSCRIBE_BUILD_VERSION 11
66

77
// only one of these should be enabled; neither -> stable
8-
#define WINDSCRIBE_IS_BETA
8+
//#define WINDSCRIBE_IS_BETA
99
//#define WINDSCRIBE_IS_GUINEA_PIG
1010

1111
#define STR_HELPER(x) #x

client/gui/connectwindow/connectwindowitem.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,6 @@ void ConnectWindowItem::updatePositions()
514514

515515
void ConnectWindowItem::updateShortenedText()
516516
{
517-
// Network name: max width is 350 - 16*3 padding (left, between network and IP, and right) - 120 for IP address.
518-
networkTrustButton_->setWidth(198*G_SCALE);
519-
520517
// City name
521518
QString shortenedFirstName;
522519
QString shortenedSecondName;

client/gui/connectwindow/networktrustbutton.cpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,15 @@ void NetworkTrustButton::setNetwork(const types::NetworkInterface &network)
9191
updatePositions();
9292
}
9393

94-
void NetworkTrustButton::setWidth(int width)
95-
{
96-
// Use unscaled width
97-
prepareGeometryChange();
98-
width_ = width;
99-
100-
updateNetworkText();
101-
}
102-
10394
void NetworkTrustButton::updateNetworkText()
10495
{
10596
// width minus left text offset and space for arrow on the right
106-
int textWidth = width_ - 40*G_SCALE - arrow_->boundingRect().width();
97+
int availableWidth = kMaxWidth*G_SCALE - 40*G_SCALE - arrow_->boundingRect().width();
10798

10899
QFont networkFont = FontManager::instance().getFont(15, QFont::Normal);
109100
QFontMetrics fmNetwork(networkFont);
110-
if (fmNetwork.horizontalAdvance(network_.friendlyName) > textWidth) {
111-
networkText_ = fmNetwork.elidedText(network_.friendlyName, Qt::ElideMiddle, textWidth);
101+
if (fmNetwork.horizontalAdvance(network_.friendlyName) > availableWidth) {
102+
networkText_ = fmNetwork.elidedText(network_.friendlyName, Qt::ElideMiddle, availableWidth);
112103
isTextElided_ = true;
113104
} else {
114105
networkText_ = network_.friendlyName;
@@ -121,6 +112,7 @@ void NetworkTrustButton::updateNetworkText()
121112
void NetworkTrustButton::updateScaling()
122113
{
123114
ClickableGraphicsObject::updateScaling();
115+
updateNetworkText();
124116
updatePositions();
125117
}
126118

@@ -149,6 +141,10 @@ void NetworkTrustButton::updatePositions()
149141
int textWidth = fmNetwork.horizontalAdvance(networkText_);
150142

151143
arrow_->setPos(36*G_SCALE + textWidth + arrowShift_*G_SCALE, (boundingRect().height() - arrow_->boundingRect().height())/2);
144+
145+
prepareGeometryChange();
146+
width_ = 40*G_SCALE + arrow_->boundingRect().width() + textWidth;
147+
152148
update();
153149
}
154150

client/gui/connectwindow/networktrustbutton.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class NetworkTrustButton : public ClickableGraphicsObject
1919
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
2020

2121
void setNetwork(const types::NetworkInterface &network);
22-
void setWidth(int width);
2322
void updateScaling() override;
2423

2524
private slots:
@@ -28,6 +27,8 @@ private slots:
2827
void onHoverLeave();
2928

3029
private:
30+
static const int kMaxWidth = 198;
31+
3132
types::NetworkInterface network_;
3233
ImageItem *trustIcon_;
3334
ImageItem *arrow_;

client/gui/mainwindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ void MainWindow::onExternalConfigWindowNextClick()
14271427
backend_->getPreferencesHelper()->setIsExternalConfigMode(true);
14281428
mainWindowController_->getConnectWindow()->setCustomConfigMode(true);
14291429
backend_->gotoCustomOvpnConfigMode();
1430+
backend_->updateCurrentNetworkInterface();
14301431
}
14311432

14321433
void MainWindow::onTwoFactorAuthWindowButtonAddClick(const QString &code2fa)
Lines changed: 1 addition & 1 deletion
Loading
-120 KB
Binary file not shown.
1.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)