Keep "Export File" window position saved on preferences (fix #2300)

This commit is contained in:
David Capello 2020-03-19 09:50:18 -03:00
parent 28248bf228
commit 941219363b
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2019 Igara Studio S.A.
// Copyright (C) 2019-2020 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -363,8 +363,12 @@ void SaveFileCopyAsCommand::onExecute(Context* context)
return result;
});
win.remapWindow();
load_window_pos(&win, "ExportFile");
again:;
if (!win.show())
const bool result = win.show();
save_window_pos(&win, "ExportFile");
if (!result)
return;
outputFilename = win.outputFilenameValue();

View File

@ -1,4 +1,5 @@
// Aseprite
// Copyright (C) 2020 Igara Studio S.A.
// Copyright (C) 2018 David Capello
//
// This program is distributed under the terms of
@ -18,7 +19,7 @@
namespace app {
class Doc;
class ExportFileWindow : protected app::gen::ExportFile {
class ExportFileWindow : public app::gen::ExportFile {
public:
ExportFileWindow(const Doc* doc);