feat: detect MSIX-virtualized Claude config path + warn (#7)
This commit is contained in:
@@ -1679,6 +1679,22 @@ class MainWindow(QMainWindow):
|
||||
self.load_profile(self.profiles[0])
|
||||
else:
|
||||
self.status.setText('No Claude installs found. Use "Add config…" to point at one.')
|
||||
self._maybe_warn_msix()
|
||||
|
||||
def _maybe_warn_msix(self):
|
||||
"""
|
||||
Windows-only, no-op everywhere else: if Claude Desktop looks like an
|
||||
MSIX/Store install with a virtualized config, append a warning to the
|
||||
status bar so edits to the plain %APPDATA% path aren't silently lost.
|
||||
Defensive on purpose -- this must never block startup or profile load.
|
||||
"""
|
||||
try:
|
||||
warning = core.msix_warning_text()
|
||||
except Exception:
|
||||
return
|
||||
if warning:
|
||||
self.status.setText(f"{self.status.text()} ⚠ {warning}")
|
||||
self.status.setToolTip(warning)
|
||||
|
||||
def add_custom_config(self):
|
||||
start = str(core.app_support_base())
|
||||
|
||||
Reference in New Issue
Block a user