File tree Expand file tree Collapse file tree 19 files changed +958
-822
lines changed Expand file tree Collapse file tree 19 files changed +958
-822
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static IShellPage CurrentInstance
5555 public static ObservableCollection < WSLDistroItem > linuxDistroItems = new ObservableCollection < WSLDistroItem > ( ) ;
5656 public static SettingsViewModel AppSettings { get ; set ; }
5757 public static InteractionViewModel InteractionViewModel { get ; set ; }
58- public static SelectedItemPropertiesViewModel SelectedItemPropertiesViewModel { get ; set ; }
58+ public static SelectedItemsPropertiesViewModel SelectedItemsPropertiesViewModel { get ; set ; }
5959
6060 private static readonly Logger Logger = LogManager . GetCurrentClassLogger ( ) ;
6161
@@ -82,7 +82,7 @@ public App()
8282
8383 AppSettings = new SettingsViewModel ( ) ;
8484 InteractionViewModel = new InteractionViewModel ( ) ;
85- SelectedItemPropertiesViewModel = new SelectedItemPropertiesViewModel ( ) ;
85+ SelectedItemsPropertiesViewModel = new SelectedItemsPropertiesViewModel ( ) ;
8686 }
8787
8888 private void OnLeavingBackground ( object sender , LeavingBackgroundEventArgs e )
Original file line number Diff line number Diff line change 11using Files . Filesystem ;
22using Files . Interacts ;
3+ using Files . View_Models ;
34using Files . Views . Pages ;
45using System ;
56using System . Collections . Generic ;
89using System . Linq ;
910using System . Runtime . CompilerServices ;
1011using Windows . ApplicationModel . DataTransfer ;
12+ using Windows . ApplicationModel . Resources ;
1113using Windows . Storage ;
1214using Windows . System ;
1315using Windows . UI . Core ;
@@ -47,6 +49,8 @@ internal set
4749 }
4850 }
4951
52+ public SelectedItemsPropertiesViewModel SelectedItemsPropertiesViewModel => App . SelectedItemsPropertiesViewModel ;
53+
5054 private List < ListedItem > _SelectedItems = new List < ListedItem > ( ) ;
5155
5256 public List < ListedItem > SelectedItems
@@ -64,11 +68,24 @@ internal set
6468 {
6569 IsItemSelected = false ;
6670 SelectedItem = null ;
71+ SelectedItemsPropertiesViewModel . IsItemSelected = false ;
6772 }
6873 else
6974 {
7075 IsItemSelected = true ;
7176 SelectedItem = _SelectedItems . First ( ) ;
77+ SelectedItemsPropertiesViewModel . IsItemSelected = true ;
78+
79+ if ( SelectedItems . Count == 1 )
80+ {
81+ SelectedItemsPropertiesViewModel . SelectedItemsCount = SelectedItems . Count . ToString ( ) + " " + ResourceController . GetTranslation ( "ItemSelected/Text" ) ;
82+ SelectedItemsPropertiesViewModel . ItemsSize = SelectedItem . FileSize ;
83+ }
84+ else
85+ {
86+ SelectedItemsPropertiesViewModel . SelectedItemsCount = SelectedItems . Count . ToString ( ) + " " + ResourceController . GetTranslation ( "ItemsSelected/Text" ) ;
87+ SelectedItemsPropertiesViewModel . ItemsSize = "" ; // We need to loop through the items to get the size
88+ }
7289 }
7390 NotifyPropertyChanged ( "SelectedItems" ) ;
7491 SetDragModeForItems ( ) ;
Original file line number Diff line number Diff line change 217217 <DependentUpon >GenericFileBrowser.xaml</DependentUpon >
218218 </Compile >
219219 <Compile Include =" View Models\InteractionViewModel.cs" />
220- <Compile Include =" View Models\SelectedItemPropertiesViewModel .cs" />
220+ <Compile Include =" View Models\SelectedItemsPropertiesViewModel .cs" />
221221 <Compile Include =" Views\InstanceTabsView.xaml.cs" >
222222 <DependentUpon >InstanceTabsView.xaml</DependentUpon >
223223 </Compile >
Original file line number Diff line number Diff line change 801801 <source >New tab (Ctrl + T)</source >
802802 <target state =" new" >New tab (Ctrl + T)</target >
803803 </trans-unit >
804+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
805+ <source >item selected</source >
806+ <target state =" new" >item selected</target >
807+ </trans-unit >
808+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
809+ <source >items selected</source >
810+ <target state =" new" >items selected</target >
811+ </trans-unit >
804812 </group >
805813 </body >
806814 </file >
Original file line number Diff line number Diff line change 794794 <source >New tab (Ctrl + T)</source >
795795 <target state =" translated" >Nueva pestaña (Ctrl + T)</target >
796796 </trans-unit >
797+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
798+ <source >item selected</source >
799+ <target state =" new" >item selected</target >
800+ </trans-unit >
801+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
802+ <source >items selected</source >
803+ <target state =" new" >items selected</target >
804+ </trans-unit >
797805 </group >
798806 </body >
799807 </file >
Original file line number Diff line number Diff line change 797797 <source >New tab (Ctrl + T)</source >
798798 <target state =" new" >New tab (Ctrl + T)</target >
799799 </trans-unit >
800+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
801+ <source >item selected</source >
802+ <target state =" new" >item selected</target >
803+ </trans-unit >
804+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
805+ <source >items selected</source >
806+ <target state =" new" >items selected</target >
807+ </trans-unit >
800808 </group >
801809 </body >
802810 </file >
Original file line number Diff line number Diff line change 801801 <source >New tab (Ctrl + T)</source >
802802 <target state =" new" >New tab (Ctrl + T)</target >
803803 </trans-unit >
804+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
805+ <source >item selected</source >
806+ <target state =" new" >item selected</target >
807+ </trans-unit >
808+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
809+ <source >items selected</source >
810+ <target state =" new" >items selected</target >
811+ </trans-unit >
804812 </group >
805813 </body >
806814 </file >
Original file line number Diff line number Diff line change 794794 <source >New tab (Ctrl + T)</source >
795795 <target state =" translated" >新しいタブ (Ctrl + T)</target >
796796 </trans-unit >
797+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
798+ <source >item selected</source >
799+ <target state =" new" >item selected</target >
800+ </trans-unit >
801+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
802+ <source >items selected</source >
803+ <target state =" new" >items selected</target >
804+ </trans-unit >
797805 </group >
798806 </body >
799807 </file >
Original file line number Diff line number Diff line change 797797 <source >New tab (Ctrl + T)</source >
798798 <target state =" new" >New tab (Ctrl + T)</target >
799799 </trans-unit >
800+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
801+ <source >item selected</source >
802+ <target state =" new" >item selected</target >
803+ </trans-unit >
804+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
805+ <source >items selected</source >
806+ <target state =" new" >items selected</target >
807+ </trans-unit >
800808 </group >
801809 </body >
802810 </file >
Original file line number Diff line number Diff line change 797797 <source >New tab (Ctrl + T)</source >
798798 <target state =" new" >New tab (Ctrl + T)</target >
799799 </trans-unit >
800+ <trans-unit id =" ItemSelected.Text" translate =" yes" xml : space =" preserve" >
801+ <source >item selected</source >
802+ <target state =" new" >item selected</target >
803+ </trans-unit >
804+ <trans-unit id =" ItemsSelected.Text" translate =" yes" xml : space =" preserve" >
805+ <source >items selected</source >
806+ <target state =" new" >items selected</target >
807+ </trans-unit >
800808 </group >
801809 </body >
802810 </file >
You can’t perform that action at this time.
0 commit comments