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:
@@ -413,6 +413,10 @@ ApplicationTypesWindow::_SetType(BMimeType* type, int32 forceUpdate)
|
|||||||
fTrackerButton->SetMessage(NULL);
|
fTrackerButton->SetMessage(NULL);
|
||||||
appFound = false;
|
appFound = false;
|
||||||
}
|
}
|
||||||
|
} else if ((forceUpdate & B_APP_HINT_CHANGED) != 0) {
|
||||||
|
fLaunchButton->SetMessage(NULL);
|
||||||
|
fPathView->SetText(NULL);
|
||||||
|
fTrackerButton->SetMessage(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forceUpdate == B_EVERYTHING_CHANGED) {
|
if (forceUpdate == B_EVERYTHING_CHANGED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user