File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <string >APPL </string >
2121 <key >CFBundleShortVersionString </key >
2222 <string >SOURCE_GIT_VERSION </string >
23+ <key >CFBundleDocumentTypes </key >
24+ <array >
25+ <dict >
26+ <key >CFBundleTypeName </key >
27+ <string >Supported Folder </string >
28+ <key >CFBundleTypeRole </key >
29+ <string >Viewer </string >
30+ <key >LSHandlerRank </key >
31+ <string >Alternate </string >
32+ <key >LSItemContentTypes </key >
33+ <array >
34+ <string >public.folder </string >
35+ </array >
36+ </dict >
37+ </array >
2338 <key >NSHighResolutionCapable </key >
2439 <true />
2540</dict >
Original file line number Diff line number Diff line change 1111using Avalonia . Markup . Xaml ;
1212using Avalonia . Media ;
1313using Avalonia . Media . Fonts ;
14+ using Avalonia . Platform ;
1415using Avalonia . Styling ;
1516using Avalonia . Threading ;
1617
@@ -475,6 +476,15 @@ private void TryLaunchAsNormal(IClassicDesktopStyleApplicationLifetime desktop)
475476 Native . OS . SetupExternalTools ( ) ;
476477 Models . AvatarManager . Instance . Start ( ) ;
477478
479+ if ( this . TryGetFeature < IActivatableLifetime > ( ) is { } activatable )
480+ {
481+ activatable . Activated += ( _ , e ) =>
482+ {
483+ if ( e is FileActivatedEventArgs { Files : { Count : > 0 } } fileArgs )
484+ _launcher ? . TryOpenRepositoryFromPath ( fileArgs . Files [ 0 ] . Path . LocalPath ) ;
485+ } ;
486+ }
487+
478488 string startupRepo = null ;
479489 if ( desktop . Args is { Length : 1 } )
480490 {
You can’t perform that action at this time.
0 commit comments