rustdesk
2022-05-07 22:47:43 +08:00
parent 12ff1e316e
commit 2705228394
4 changed files with 21 additions and 4 deletions

View File

@@ -352,7 +352,8 @@ div.trust-me > div:nth-child(3) {
font-weight: bold;
}
div.trust-me > div:nth-child(4) {
div.trust-me > div:nth-child(4),
div.trust-me > div:nth-child(5) {
margin-top: 0.5em;
text-align: center;
}

View File

@@ -584,6 +584,7 @@ class FixWayland: Reactor.Component {
<div>{translate('Warning')}</div>
<div>{translate('Login screen using Wayland is not supported')}</div>
<div #fix-wayland .link>{translate('Fix it')}</div>
<div #help-me .link>{translate('Help')}</div>
<div>({translate('Reboot required')})</div>
</div>;
}
@@ -592,6 +593,10 @@ class FixWayland: Reactor.Component {
handler.fix_login_wayland();
app.update();
}
event click $(#help-me) {
handler.open_url(translate("doc_fix_wayland"));
}
}
class ModifyDefaultLogin: Reactor.Component {
@@ -600,16 +605,22 @@ class ModifyDefaultLogin: Reactor.Component {
<div>{translate('Warning')}</div>
<div>{translate('Current Wayland display server is not supported')}</div>
<div #modify-default-login .link>{translate('Fix it')}</div>
<div #help-me .link>{translate('Help')}</div>
<div>({translate('Reboot required')})</div>
</div>;
}
event click $(#modify-default-login) {
if (var r = handler.modify_default_login()) {
msgbox("custom-error", "Error", r);
// without handler, will fail, fucking stupid sciter
handler.msgbox("custom-error", "Error", r);
}
app.update();
}
event click $(#help-me) {
handler.open_url(translate("doc_fix_wayland"));
}
}
function watch_trust() {