4
4
use crate :: config:: Config ;
5
5
#[ cfg( feature = "page-accessibility" ) ]
6
6
use crate :: pages:: accessibility;
7
+ use crate :: pages:: applications;
7
8
#[ cfg( feature = "page-bluetooth" ) ]
8
9
use crate :: pages:: bluetooth;
9
10
use crate :: pages:: desktop:: { self , appearance} ;
@@ -84,12 +85,13 @@ impl SettingsApp {
84
85
#[ cfg( feature = "page-about" ) ]
85
86
PageCommands :: About => self . pages . page_id :: < system:: about:: Page > ( ) ,
86
87
PageCommands :: Appearance => self . pages . page_id :: < desktop:: appearance:: Page > ( ) ,
88
+ PageCommands :: Applications => self . pages . page_id :: < applications:: Page > ( ) ,
87
89
#[ cfg( feature = "page-bluetooth" ) ]
88
90
PageCommands :: Bluetooth => self . pages . page_id :: < bluetooth:: Page > ( ) ,
89
91
#[ cfg( feature = "page-date" ) ]
90
92
PageCommands :: DateTime => self . pages . page_id :: < time:: date:: Page > ( ) ,
91
93
#[ cfg( feature = "page-default-apps" ) ]
92
- PageCommands :: DefaultApps => self . pages . page_id :: < system :: default_apps:: Page > ( ) ,
94
+ PageCommands :: DefaultApps => self . pages . page_id :: < applications :: default_apps:: Page > ( ) ,
93
95
PageCommands :: Desktop => self . pages . page_id :: < desktop:: Page > ( ) ,
94
96
#[ cfg( feature = "page-display" ) ]
95
97
PageCommands :: Displays => self . pages . page_id :: < display:: Page > ( ) ,
@@ -100,6 +102,9 @@ impl SettingsApp {
100
102
PageCommands :: Input => self . pages . page_id :: < input:: Page > ( ) ,
101
103
#[ cfg( feature = "page-input" ) ]
102
104
PageCommands :: Keyboard => self . pages . page_id :: < input:: keyboard:: Page > ( ) ,
105
+ PageCommands :: LegacyApplications => self
106
+ . pages
107
+ . page_id :: < applications:: legacy_applications:: Page > ( ) ,
103
108
#[ cfg( feature = "page-input" ) ]
104
109
PageCommands :: Mouse => self . pages . page_id :: < input:: mouse:: Page > ( ) ,
105
110
#[ cfg( feature = "page-networking" ) ]
@@ -214,6 +219,7 @@ impl cosmic::Application for SettingsApp {
214
219
app. insert_page :: < power:: Page > ( ) ;
215
220
#[ cfg( feature = "page-input" ) ]
216
221
app. insert_page :: < input:: Page > ( ) ;
222
+ app. insert_page :: < applications:: Page > ( ) ;
217
223
app. insert_page :: < time:: Page > ( ) ;
218
224
app. insert_page :: < system:: Page > ( ) ;
219
225
@@ -390,6 +396,10 @@ impl cosmic::Application for SettingsApp {
390
396
}
391
397
}
392
398
399
+ crate :: pages:: Message :: Applications ( message) => {
400
+ page:: update!( self . pages, message, applications:: Page ) ;
401
+ }
402
+
393
403
#[ cfg( feature = "page-bluetooth" ) ]
394
404
crate :: pages:: Message :: Bluetooth ( message) => {
395
405
if let Some ( page) = self . pages . page_mut :: < bluetooth:: Page > ( ) {
@@ -406,7 +416,7 @@ impl cosmic::Application for SettingsApp {
406
416
407
417
#[ cfg( feature = "page-default-apps" ) ]
408
418
crate :: pages:: Message :: DefaultApps ( message) => {
409
- if let Some ( page) = self . pages . page_mut :: < system :: default_apps:: Page > ( ) {
419
+ if let Some ( page) = self . pages . page_mut :: < applications :: default_apps:: Page > ( ) {
410
420
return page. update ( message) . map ( Into :: into) ;
411
421
}
412
422
}
@@ -478,6 +488,10 @@ impl cosmic::Application for SettingsApp {
478
488
}
479
489
}
480
490
491
+ crate :: pages:: Message :: LegacyApplications ( message) => {
492
+ page:: update!( self . pages, message, applications:: legacy_applications:: Page ) ;
493
+ }
494
+
481
495
#[ cfg( feature = "page-input" ) ]
482
496
crate :: pages:: Message :: ManageWindowShortcuts ( message) => {
483
497
if let Some ( page) = self
@@ -614,7 +628,7 @@ impl cosmic::Application for SettingsApp {
614
628
}
615
629
616
630
crate :: pages:: Message :: StartupApps ( message) => {
617
- if let Some ( page) = self . pages . page_mut :: < system :: startup_apps:: Page > ( ) {
631
+ if let Some ( page) = self . pages . page_mut :: < applications :: startup_apps:: Page > ( ) {
618
632
return page. update ( message) . map ( Into :: into) ;
619
633
}
620
634
}
0 commit comments