fix(content): label unloaded version dialogs correctly

This commit is contained in:
objz committed 2026-08-05 00:24:20 +02:00
1 parent e09e5a0168
commit 7d382aade9
3 files changed
+6 -4

No files matched your search

+4 -2
View File
@@ -393,8 +393,10 @@ pub struct VersionPopupState {
impl VersionPopupState {
pub fn title(&self) -> String {
if self.installed_path.is_some()
&& self.current_version_id.as_deref()
== self.selected_version().map(|version| version.id.as_str())
&& self.current_version_id.as_deref().is_some_and(|current| {
self.selected_version()
.is_some_and(|version| version.id == current)
})
{
format!("Reinstall {}", self.project_title)
} else if self.installed_path.is_some() {