Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SaveFile Command API (SaveFileCopyAs) After saving ('Saving file' ui) is displayed? #4165

Closed
RLOFLS opened this issue Nov 23, 2023 · 0 comments
Assignees
Labels
bug scripting Related to scripting API ui
Milestone

Comments

@RLOFLS
Copy link

RLOFLS commented Nov 23, 2023

SaveFileCopyAs I pass the parameter ui=false, it does not show the ui of the export interface, but every time I export the image it will still show the small window ui of 'Saving file', can I make it not show (if there is no error), and then pass the parameter (ui=false) control.

I've added a parameter to my current local source code to achieve the above effect

  • cmd_save_app.cpp
...
class SaveFileJob : public Job, public IFileOpProgress {
public:
  SaveFileJob(FileOp* fop, bool showProcessUi = true)
...
...
...

SaveFileJob job(fop.get(), params().ui());
  job.showProgressWindow();

...

  • job.cpp
Job(const char* jobName, bool showProcessUi = true);
  • job.cpp
Job::Job(const char* jobName, bool showProcessUi)
{
  m_last_progress = 0.0;
  m_done_flag = false;
  m_canceled_flag = false;

if (App::instance()->isGui() && showProcessUi) {
    m_alert_window = ui::Alert::create(
...

Aseprite and System version

  • Aseprite version: v1.3-rc7-dev
  • System: win10, Ubuntu 20.04.3 LTS
@RLOFLS RLOFLS changed the title https://github.com/aseprite/aseprite Whether the SaveFile command related API UI is displayed Nov 23, 2023
@RLOFLS RLOFLS changed the title Whether the SaveFile command related API UI is displayed Whether the SaveFile command related API UI is displayed? Nov 23, 2023
@RLOFLS RLOFLS changed the title Whether the SaveFile command related API UI is displayed? SaveFile Command API (SaveFileCopyAs) After saving ('Saving file' ui) is displayed? Nov 23, 2023
@dacap dacap added ui scripting Related to scripting API bug labels Nov 23, 2023
@dacap dacap self-assigned this May 9, 2024
@dacap dacap added this to the v1.3.7 milestone May 9, 2024
@dacap dacap closed this as completed in 0cc1161 May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug scripting Related to scripting API ui
Projects
Archived in project
Development

No branches or pull requests

2 participants