mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Keep "Export File" window position saved on preferences (fix #2300)
This commit is contained in:
parent
28248bf228
commit
941219363b
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user