Skip to content

Commit

Permalink
#2617 add '.png' extension automatically
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@25487 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 4, 2020
1 parent bfd30be commit 5fce650
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/client/gtk_base/session_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,8 @@ def save_graph(self, _ebox, btn, graph):
if response == Gtk.ResponseType.OK:
if len(filenames)==1:
filename = filenames[0]
if not filename.lower().endswith(".png"):
filename += ".png"
surface = graph.surface
log("saving surface %s to %s", surface, filename)
from io import BytesIO
Expand Down

0 comments on commit 5fce650

Please sign in to comment.