Tiny ui fixes

This commit is contained in:
pokamest 2022-01-22 18:19:57 +03:00
parent 495e74e2f0
commit 8f28964ce2
3 changed files with 4 additions and 3 deletions

View file

@ -108,7 +108,7 @@ PageBase {
Layout.alignment: Qt.AlignLeft
height: 21
background: Item {}
text: VpnLogic.labelCurrentServer
text: VpnLogic.labelCurrentServer + " →"
font.family: "Lato"
font.styleName: "normal"
font.pixelSize: 16
@ -136,7 +136,7 @@ PageBase {
Layout.alignment: Qt.AlignLeft
height: 21
background: Item {}
text: VpnLogic.labelCurrentService
text: VpnLogic.labelCurrentService + " →"
font.family: "Lato"
font.styleName: "normal"
font.pixelSize: 16

View file

@ -11,7 +11,6 @@ PageProtocolBase {
protocol: ProtocolEnum.ShadowSocks
logic: UiLogic.protocolLogic(protocol)
enabled: logic.pageEnabled
BackButton {
id: back
}

View file

@ -650,6 +650,7 @@ void UiLogic::saveTextFile(const QString& desc, const QString& ext, const QStrin
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
if (fileName.isEmpty()) return;
if (!fileName.endsWith(ext)) fileName.append(ext);
QFile save(fileName);
save.open(QIODevice::WriteOnly);
@ -666,6 +667,7 @@ void UiLogic::saveBinaryFile(const QString &desc, const QString &ext, const QStr
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
if (fileName.isEmpty()) return;
if (!fileName.endsWith(ext)) fileName.append(ext);
QFile save(fileName);
save.open(QIODevice::WriteOnly);