Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ccab61e2 by wurstsalat at 2022-05-20T11:06:27+02:00
fix: HistoryExport: Process folder URI correctly on Windows
- - - - -
1 changed file:
- gajim/gtk/history_export.py
Changes:
=====================================
gajim/gtk/history_export.py
=====================================
@@ -21,6 +21,7 @@
import time
from datetime import datetime
from pathlib import Path
+import sys
from gi.repository import Gtk
@@ -201,7 +202,11 @@ def _set_complete(self) -> None:
def _on_file_set(self, button: Gtk.FileChooserButton) -> None:
uri = button.get_uri()
assert uri is not None
- self._export_directory = uri.removeprefix('file://')
+
+ if sys.platform == 'win32':
+ self._export_directory = uri.removeprefix('file:///')
+ else:
+ self._export_directory = uri.removeprefix('file://')
def get_account_and_directory(self) -> tuple[str, str]:
assert self._account is not None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ccab61e2c37ef417b4346ed9031a32fd5ae2494b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ccab61e2c37ef417b4346ed9031a32fd5ae2494b
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits