mirror of
https://github.com/Orbmu2k/nvidiaProfileInspector.git
synced 2026-01-19 04:08:12 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22d66d0aeb | ||
|
|
ceddf3d4ef |
@@ -766,18 +766,20 @@ namespace nspector
|
||||
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
// KeyUp event is only fired when combobox item doesn't exist with the entered text
|
||||
// Try searching for text as an exe/application name
|
||||
try
|
||||
// Search by exe name if the text isn't already a valid profile name
|
||||
if (!_profileNames.Contains(cbProfiles.Text))
|
||||
{
|
||||
var profile = _drs.GetProfileNameByExeName(cbProfiles.Text);
|
||||
if (!string.IsNullOrEmpty(profile))
|
||||
try
|
||||
{
|
||||
cbProfiles.Text = profile;
|
||||
ChangeCurrentProfile(profile);
|
||||
var profile = _drs.GetProfileNameByExeName(cbProfiles.Text);
|
||||
if (!string.IsNullOrEmpty(profile))
|
||||
{
|
||||
cbProfiles.Text = profile;
|
||||
ChangeCurrentProfile(profile);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -842,11 +844,12 @@ namespace nspector
|
||||
|
||||
private async Task ScanProfilesSilentAsync(bool scanPredefined, bool showProfileDialog)
|
||||
{
|
||||
if (_skipScan || _settings.ShowCustomizedSettingNamesOnly)
|
||||
if (_skipScan)
|
||||
{
|
||||
|
||||
if (scanPredefined)
|
||||
if (scanPredefined && !_alreadyScannedForPredefinedSettings)
|
||||
{
|
||||
_alreadyScannedForPredefinedSettings = true;
|
||||
_meta.ResetMetaCache();
|
||||
tsbModifiedProfiles.Enabled = true;
|
||||
exportUserdefinedProfilesToolStripMenuItem.Enabled = false;
|
||||
@@ -897,13 +900,8 @@ namespace nspector
|
||||
tsbRefreshProfile.Enabled = true;
|
||||
}
|
||||
|
||||
private async void cbCustomSettingsOnly_CheckedChanged(object sender, EventArgs e)
|
||||
private void cbCustomSettingsOnly_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
_settings.ShowCustomizedSettingNamesOnly = tscbShowCustomSettingNamesOnly.Checked;
|
||||
if (!tscbShowCustomSettingNamesOnly.Checked && !_alreadyScannedForPredefinedSettings)
|
||||
{
|
||||
await ScanProfilesSilentAsync(true, false);
|
||||
}
|
||||
RefreshCurrentProfile();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user