Tiny ui fixes
This commit is contained in:
parent
495e74e2f0
commit
8f28964ce2
3 changed files with 4 additions and 3 deletions
|
@ -108,7 +108,7 @@ PageBase {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
height: 21
|
height: 21
|
||||||
background: Item {}
|
background: Item {}
|
||||||
text: VpnLogic.labelCurrentServer
|
text: VpnLogic.labelCurrentServer + " →"
|
||||||
font.family: "Lato"
|
font.family: "Lato"
|
||||||
font.styleName: "normal"
|
font.styleName: "normal"
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
|
@ -136,7 +136,7 @@ PageBase {
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
height: 21
|
height: 21
|
||||||
background: Item {}
|
background: Item {}
|
||||||
text: VpnLogic.labelCurrentService
|
text: VpnLogic.labelCurrentService + " →"
|
||||||
font.family: "Lato"
|
font.family: "Lato"
|
||||||
font.styleName: "normal"
|
font.styleName: "normal"
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
|
|
|
@ -11,7 +11,6 @@ PageProtocolBase {
|
||||||
protocol: ProtocolEnum.ShadowSocks
|
protocol: ProtocolEnum.ShadowSocks
|
||||||
logic: UiLogic.protocolLogic(protocol)
|
logic: UiLogic.protocolLogic(protocol)
|
||||||
|
|
||||||
enabled: logic.pageEnabled
|
|
||||||
BackButton {
|
BackButton {
|
||||||
id: back
|
id: back
|
||||||
}
|
}
|
||||||
|
|
|
@ -650,6 +650,7 @@ void UiLogic::saveTextFile(const QString& desc, const QString& ext, const QStrin
|
||||||
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
|
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
|
||||||
|
|
||||||
if (fileName.isEmpty()) return;
|
if (fileName.isEmpty()) return;
|
||||||
|
if (!fileName.endsWith(ext)) fileName.append(ext);
|
||||||
|
|
||||||
QFile save(fileName);
|
QFile save(fileName);
|
||||||
save.open(QIODevice::WriteOnly);
|
save.open(QIODevice::WriteOnly);
|
||||||
|
@ -666,6 +667,7 @@ void UiLogic::saveBinaryFile(const QString &desc, const QString &ext, const QStr
|
||||||
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
|
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), ext);
|
||||||
|
|
||||||
if (fileName.isEmpty()) return;
|
if (fileName.isEmpty()) return;
|
||||||
|
if (!fileName.endsWith(ext)) fileName.append(ext);
|
||||||
|
|
||||||
QFile save(fileName);
|
QFile save(fileName);
|
||||||
save.open(QIODevice::WriteOnly);
|
save.open(QIODevice::WriteOnly);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue