Implement Qualcomm Sahara VIP and fix a few bugs

* Qualcomm Sahara VIP
* Project Cleanup
* Allow unlocking an already unlocked phone
This commit is contained in:
Gustave Monce
2021-08-11 14:33:49 +02:00
parent 9f4c92f437
commit c5fcb1ec8d
72 changed files with 987 additions and 861 deletions
+5 -5
View File
@@ -213,9 +213,9 @@ namespace WPinternals
CaptionWidth += 10;
}
bool SelectVisible = (Path == null);
bool ChangeVisible = (Path != null);
bool ClearVisible = ((Path != null) && AllowNull);
bool SelectVisible = Path == null;
bool ChangeVisible = Path != null;
bool ClearVisible = (Path != null) && AllowNull;
double NewWidth = ActualWidth - CaptionWidth;
if (SelectVisible)
@@ -225,12 +225,12 @@ namespace WPinternals
if (ChangeVisible)
{
NewWidth -= (ChangeLink.ActualWidth + 10);
NewWidth -= ChangeLink.ActualWidth + 10;
}
if (ClearVisible)
{
NewWidth -= (ClearLink.ActualWidth + 10);
NewWidth -= ClearLink.ActualWidth + 10;
}
SetText(NewWidth);