FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn't exist.
If the filetype existed but the entry_ref did not, then the path from the previously shown application would be used. This fixes that.
This commit is contained in:
parent
0267bc5f22
commit
f3dd3a96c8
@ -413,6 +413,10 @@ ApplicationTypesWindow::_SetType(BMimeType* type, int32 forceUpdate)
|
||||
fTrackerButton->SetMessage(NULL);
|
||||
appFound = false;
|
||||
}
|
||||
} else if ((forceUpdate & B_APP_HINT_CHANGED) != 0) {
|
||||
fLaunchButton->SetMessage(NULL);
|
||||
fPathView->SetText(NULL);
|
||||
fTrackerButton->SetMessage(NULL);
|
||||
}
|
||||
|
||||
if (forceUpdate == B_EVERYTHING_CHANGED) {
|
||||
|
Loading…
Reference in New Issue
Block a user