Skip to content

Commit 4a744e9

Browse files
committed
add option to remove new version message
1 parent 30dff0a commit 4a744e9

12 files changed

+83
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart
2+
index ba724eed5..cb66cdaed 100644
3+
--- a/flutter/lib/desktop/pages/desktop_home_page.dart
4+
+++ b/flutter/lib/desktop/pages/desktop_home_page.dart
5+
@@ -424,7 +424,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
6+
}
7+
8+
Widget buildHelpCards(String updateUrl) {
9+
- if (!bind.isCustomClient() &&
10+
+ /*if (!bind.isCustomClient() &&
11+
updateUrl.isNotEmpty &&
12+
!isCardClosed &&
13+
bind.mainUriPrefixSync().contains('rustdesk')) {
14+
@@ -435,7 +435,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
15+
final Uri url = Uri.parse('https://rustdesk.com/download');
16+
await launchUrl(url);
17+
}, closeButton: true);
18+
- }
19+
+ }*/
20+
if (systemError.isNotEmpty) {
21+
return buildInstallCard("", systemError, "", () {});
22+
}

.github/workflows/generator-android.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ jobs:
408408
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
409409
git apply statussort.diff
410410
411+
- name: removeNewVersionNotif
412+
continue-on-error: true
413+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
414+
run: |
415+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
416+
git apply removeNewVersionNotif.diff
417+
411418
- name: Report Status
412419
uses: fjogeleit/http-request-action@v1
413420
with:

.github/workflows/generator-linux.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,13 @@ jobs:
345345
run: |
346346
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
347347
git apply statussort.diff
348+
349+
- name: removeNewVersionNotif
350+
continue-on-error: true
351+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
352+
run: |
353+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
354+
git apply removeNewVersionNotif.diff
348355
349356
- name: Restore bridge files
350357
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'

.github/workflows/generator-macos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@ jobs:
471471
run: |
472472
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
473473
git apply statussort.diff
474+
475+
- name: removeNewVersionNotif
476+
continue-on-error: true
477+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
478+
run: |
479+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
480+
git apply removeNewVersionNotif.diff
474481
475482

476483
- name: Install Rust toolchain

.github/workflows/generator-windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ jobs:
383383
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
384384
git apply statussort.diff
385385
386+
- name: removeNewVersionNotif
387+
continue-on-error: true
388+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
389+
run: |
390+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
391+
git apply removeNewVersionNotif.diff
392+
386393
387394
- name: run as admin
388395
continue-on-error: true

.github/workflows/pre137-generator-android.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,13 @@ jobs:
406406
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
407407
git apply statussort.diff
408408
409+
- name: removeNewVersionNotif
410+
continue-on-error: true
411+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
412+
run: |
413+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
414+
git apply removeNewVersionNotif.diff
415+
409416
- name: Report Status
410417
uses: fjogeleit/http-request-action@v1
411418
with:

.github/workflows/pre137-generator-linux.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ jobs:
344344
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
345345
git apply statussort.diff
346346
347+
- name: removeNewVersionNotif
348+
continue-on-error: true
349+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
350+
run: |
351+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
352+
git apply removeNewVersionNotif.diff
353+
347354
- name: Restore bridge files
348355
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
349356
uses: actions/download-artifact@master

.github/workflows/pre137-generator-macos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ jobs:
464464
run: |
465465
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
466466
git apply statussort.diff
467+
468+
- name: removeNewVersionNotif
469+
continue-on-error: true
470+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
471+
run: |
472+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
473+
git apply removeNewVersionNotif.diff
467474
468475

469476
- name: Install Rust toolchain

.github/workflows/pre137-generator-windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,13 @@ jobs:
381381
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
382382
git apply statussort.diff
383383
384+
- name: removeNewVersionNotif
385+
continue-on-error: true
386+
if: fromJson(inputs.extras).removeNewVersionNotif == 'true'
387+
run: |
388+
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff
389+
git apply removeNewVersionNotif.diff
390+
384391
385392
- name: run as admin
386393
continue-on-error: true

rdgenerator/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,5 @@ class GenerateForm(forms.Form):
7171
cycleMonitor = forms.BooleanField(initial=False, required=False)
7272
xOffline = forms.BooleanField(initial=False, required=False)
7373
hidecm = forms.BooleanField(initial=False, required=False)
74-
statussort = forms.BooleanField(initial=False, required=False)
74+
statussort = forms.BooleanField(initial=False, required=False)
75+
removeNewVersionNotif = forms.BooleanField(initial=False, required=False)

0 commit comments

Comments
 (0)