mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
add build date to mobile
This commit is contained in:
parent
0e61d4e819
commit
22b0b54527
1 changed files with 14 additions and 0 deletions
|
@ -47,6 +47,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||
var _localIP = "";
|
||||
var _directAccessPort = "";
|
||||
var _fingerprint = "";
|
||||
var _buildDate = "";
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
@ -143,6 +144,12 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||
_fingerprint = fingerprint;
|
||||
}
|
||||
|
||||
final buildDate = await bind.mainGetBuildDate();
|
||||
if (_buildDate != buildDate) {
|
||||
update = true;
|
||||
_buildDate = buildDate;
|
||||
}
|
||||
|
||||
if (update) {
|
||||
setState(() {});
|
||||
}
|
||||
|
@ -470,6 +477,13 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||
)),
|
||||
),
|
||||
leading: Icon(Icons.info)),
|
||||
SettingsTile.navigation(
|
||||
title: Text(translate("Build Date")),
|
||||
value: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 8),
|
||||
child: Text(_buildDate),
|
||||
),
|
||||
leading: Icon(Icons.query_builder)),
|
||||
SettingsTile.navigation(
|
||||
onPressed: (context) => onCopyFingerprint(_fingerprint),
|
||||
title: Text(translate("Fingerprint")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue