-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
* chore: code cleanup * fix issue where vault may not be sorting after refresh * chore: performance improvements offloading to background thread * fix: bitmaps and add lazy loading fix: tree search fix: errors when logging in or out of accounts with saved preferences change window size to be larger * add ablity to refresh subscriptions fix issue with subscriptions not saving * add dynamic splitview based on window PercentageConverter update avalonia version fix "unpinned" showing things that were not actually pinned
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"profiles": { | ||
"Desktop": { | ||
"commandName": "Project" | ||
}, | ||
"WSL": { | ||
"commandName": "WSL2", | ||
"distributionName": "" | ||
"profiles": { | ||
"Desktop": { | ||
"commandName": "Project" | ||
}, | ||
"WSL": { | ||
"commandName": "WSL2", | ||
"distributionName": "" | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using Avalonia.Data.Converters; | ||
using System.Globalization; | ||
|
||
namespace KeyVaultExplorer.Resources; | ||
|
||
public class PercentageConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS Arm64
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS Arm64
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build Windows
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build Windows
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS intel
Check warning on line 9 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS intel
|
||
{ | ||
if (value is double width) | ||
{ | ||
var calculatedWidth = width * 0.25; | ||
return calculatedWidth < 325 ? 325 : calculatedWidth; | ||
} | ||
return value; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS Arm64
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS Arm64
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build Windows
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build Windows
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS intel
Check warning on line 19 in KeyVaultExplorer/Resources/PercentageConverter.cs GitHub Actions / Build macOS intel
|
||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |