File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
internal_packages/notifications/lib Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ const notifications = [
1818 UnstableChannelNotification ,
1919 DevModeNotification ,
2020 DisabledMailRulesNotification ,
21- OfflineNotification ,
2221 UpdateNotification ,
2322]
2423
24+ if ( NylasEnv . config . get ( 'core.workspace.showOfflineNotification' ) ) {
25+ notifications . push ( OfflineNotification )
26+ }
27+
2528export function activate ( ) {
2629 ComponentRegistry . register ( ActivitySidebar , { location : WorkspaceStore . Location . RootSidebar } ) ;
2730 ComponentRegistry . register ( NotifWrapper , { location : WorkspaceStore . Location . RootSidebar } ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ export default {
3131 'default' : false ,
3232 'title' : "Use 24-hour clock" ,
3333 } ,
34+ showOfflineNotification : {
35+ 'type' : 'boolean' ,
36+ 'default' : true ,
37+ 'title' : 'Show offline notification popup' ,
38+ } ,
3439 interfaceZoom : {
3540 'title' : "Override standard interface scaling" ,
3641 'type' : 'number' ,
You can’t perform that action at this time.
0 commit comments