Avidemux Forum

Avidemux => Windows => Topic started by: fish on July 31, 2018, 06:08:29 AM

Title: Feature request
Post by: fish on July 31, 2018, 06:08:29 AM
Something just occurred to me a while ago when I accidently closed Avidemux instead of one of the folders open on top of it, Avidemux doesn't have a confirmation before closing. It may well be the only software I have used that doesn't have this and as I have just done the same thing, losing about 20 mins of editing, I thought it would make sense to request this feature.
Actually, I first thought, you're an idiot and then thought it would make sense to request this feature.
Title: Re: Feature request
Post by: eumagga0x2a on August 01, 2018, 11:05:34 AM
Quote from: fish on July 31, 2018, 06:08:29 AM
Something just occurred to me a while ago when I accidently closed Avidemux instead of one of the folders open on top of it, Avidemux doesn't have a confirmation before closing.

You would have lost the edits if you just closed the video. The confirmation dialog should be tied therefore to closing the loaded video, not Avidemux. It would be utterly frustrating to have to click it away each time if something like markers has been changed during the session. It would conflict with scripting as well (Avidemux doesn't have means to know if a command has been called from GUI or from a script).

An autosave function on video close with a menu action to load the last session could be IMHO a better solution, but by no means a priority.
Title: Re: Feature request
Post by: fish on August 06, 2018, 07:58:20 PM
Ah, ok I have only ever used the GUI so I'm oblivious to the complications you allude to. I don't understand what you mean about the markers. I have managed up to now without this so it's no big deal, I just got careless when closing folders too quickly and hit the x at top right of Avidemux by mistake. As it is, hitting the top right x by mistake can be more inconvenient than a crash because a crash can normally be recovered.
Title: Re: Feature request
Post by: eumagga0x2a on August 06, 2018, 10:58:56 PM
Quote from: fish on August 06, 2018, 07:58:20 PM
I don't understand what you mean about the markers.

It was an example of an editing step.

In short: saving the last session is good, showing a confirmation dialog is bad, very bad. No time estimate for this to get implemented.
Title: Re: Feature request
Post by: fish on August 07, 2018, 02:18:53 AM
I think you may have misunderstood what I meant, I didn't mean a confirmation of every action or edit but simply, 'Do you really want to close XXXX? or Do you really want to exit Avidemux? Yes - No, when closing Avidemux or closing a session.
Almost every piece of software in existence has this.Is there something unique to Avidemux that makes this bad? I'm just curious as maybe I have been missing out on some useful function of the software for a long time. I agree that saving the last session would be even better but wouldn't that be more complicated to implement?
I know it's not in any way important or urgent but I'm guessing you may have misunderstood what I meant initially.
Title: Re: Feature request
Post by: AQUAR on August 07, 2018, 10:01:55 AM
@ fish just wants a Yes/No opportunity to confirm the exit action when using the exit button on ADM's main dialog window.

This means intercepting the exit button directive, and stopping it or invoking it as per further user input. (usually a Yes / No dialog!).
Mean or Eumagga are the ones that would know for sure if its as easy as I think it would be.

That said - ADM is by no means the exception in missing exit confirmation when using the exit button (have no opinion on it myself!).

Title: Re: Feature request
Post by: eumagga0x2a on August 07, 2018, 06:41:00 PM
Autosaving the session is the way to go. I thought I was clear enough explaining the rationale behind it.
Title: Re: Feature request
Post by: AQUAR on August 08, 2018, 10:16:05 AM
@ Eumagga

The OP's request has nothing to do with saving anything when using the "X" exit button (top right window corner!).
Its merely an end users perspective of how windows programs often exit when clicking on this button and a request to implement it on ADM.
When exiting ADM in this manner, is a simple confirmation dialog that could prevent the exit action (and thereby maintaining the state of ADM) not practical? (override the QT closeEvent to include a messagebox "yes/no" dialog!). 

Your rationale behind autosaving a session on exit is not being questioned here at all, in fact it would be a better all-round feature that will cover the intent to recover from an accidental exit. Loading the autosaved session would have to be a user initiated action as I for one like the way ADM starts with a basic known configuration.
Title: Re: Feature request
Post by: fish on August 08, 2018, 05:51:01 PM
Quote from: eumagga0x2a on August 07, 2018, 06:41:00 PM
Autosaving the session is the way to go. I thought I was clear enough explaining the rationale behind it.
I didn't disagree with anything you posted but you clearly didn't understand my posts. I simply requested that when the x in the top right of Avidemux is clicked on using a mouse, that instead of instantly closing, potentially accidently losing all editing up tp that point, that instead of instantly closing, a conformation in the form of "Do you really want to close Avidemux? Yes or No?, is triggered. This would prevent the instant loss of editing done up to that point, if the x is clicked on accidently. I can't explain it any clearer or simpler.
Yes autosaving would be better but I assume, more work to implement than a double check on exit.
Title: Re: Feature request
Post by: hiro on August 09, 2018, 01:01:53 PM
Hi

IN CASE the user would be requested to answer some "Do you want to quit ADM?" question (some day), I sure hope that an option to disable / enable that msg. would come with it...
Title: Re: Feature request
Post by: AQUAR on August 09, 2018, 02:48:56 PM
The proper way to exit ADM is by using the Quit command under the File Menu Tab.
Choosing that Quit command is unlikely to be an accidental user initiated action, and so a confirmation dialog is not suggested for that.

I think the merit for this request is for developers to consider, and as usual which ever way is chosen will not suit some.

ADM is a simple editor and the main developer has made great strides to simplify the GUI these last few years.
Its the KISS principle and with that in mind "less is better".

   
Title: Re: Feature request
Post by: eumagga0x2a on August 28, 2018, 04:45:08 PM
The last state of editing is now automatically saved when closing a video and can be restored if necessary via "Recent" --> "Restore previous session" menu action (also after application restart or computer reboot) on condition that no editing steps have been performed since then. "Session" is a bit of a stretch: we don't save editing steps but only the final state.

Please try the latest nightly.
Title: Re: Feature request
Post by: AQUAR on August 29, 2018, 04:35:48 AM
Thanks for implementing this feature. 
Title: Re: Feature request
Post by: JB on August 29, 2018, 03:51:13 PM
@AQUAR that wrote :

The proper way to exit ADM is by using the Quit command under the File Menu Tab.
Choosing that Quit command is unlikely to be an accidental user initiated action, and so a confirmation dialog is not suggested for that.

let me prove you wrong :

There is a little annoyance from this particular UX use case : before i made my autoHotkey script to control avidemux i used  ctrl-s to save snapshots and on my french keyboard i sometimes  unexpectedly quit because the q key is just left of the s key. At first i thought it was a bug but then i looked in the menu and the exit adm command shortcut is ctrl-q. Since i use my script i don't have the problem because i completely bypass the ctrl key but some people may have the problem.
Title: Re: Feature request
Post by: AQUAR on August 30, 2018, 11:07:49 AM
Proves nothing as this topic is about accidental mouse action on the windows close button.
Mouse action relates the GUI of ADM not keyboard short cuts (which I think were made configurable!).
Using your mouse the exit a program is best via its programmed exit button (if it exists!).
Title: Re: Feature request
Post by: eumagga0x2a on August 30, 2018, 11:47:54 AM
Quote from: AQUAR on August 30, 2018, 11:07:49 AM
Using your mouse the exit a program is best via its programmed exit button (if it exists!).

The reimplemented closeEvent (https://github.com/mean00/avidemux2/blob/master/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.h#L191) for the Avidemux main window calls the very same routine (https://github.com/mean00/avidemux2/blob/master/avidemux/common/gui_main.cpp#L334) that gets called when using Ctrl+Q shortcut (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_commonUI/myOwnMenu.h#L49). It makes no difference.
Title: Re: Feature request
Post by: AQUAR on August 30, 2018, 01:34:31 PM
Of course, however the point was general in nature viz "exit a program".

With the ADM keyboard shortcut for exit calling the same closeEvent, we also get the new "saved state feature".
I thought that was a good solution to the OP's issue and covers JB's issue as well.

Title: Re: Feature request
Post by: JB on August 31, 2018, 04:56:04 PM
Quote from: AQUAR on August 30, 2018, 11:07:49 AM
Proves nothing as this topic is about accidental mouse action on the windows close button.
Mouse action relates the GUI of ADM not keyboard short cuts (which I think were made configurable!).
Using your mouse the exit a program is best via its programmed exit button (if it exists!).

my apologies i thought the topic was about accidentally exiting ADM without failsafe. I didn't know you could reconfigure the shortcut, i will search the doc but if you know where it is please let me know.

as for how properly exiting an application i don't know if there is an official proper way, the most i can recall from that days it was that you had to handle the X button and the file->quit the same way even if not triggered by the same event but it was 20 years ago so i have forgoten most of it. You are not the first person telling that people must use the "official " programmed way to exit an app but almost all the people i know use the X button. And as an ergonom once told me : always look at what people do, not what they say.
Title: Re: Feature request
Post by: AQUAR on September 01, 2018, 10:44:31 AM
@JB

Thanks for the response.
You are quite right in that these days the program exit event is most likely the same regardless of the trigger.
But you never really know though unless you dig into the source code.
I too go back a long way with programming experience (mainframe days in fact). 

There was some talk about user defined key bindings but not sure it was ever acted upon (never checked as I don't use keyboard short cuts!)
The fail safe exit that has been implemented by Eumagga will help ameliorate the accidental ctrl+Q shortcut. 
Title: Re: Feature request
Post by: JB on September 01, 2018, 03:51:57 PM
i did my own key bindings with autohotkeys since i use only keyboard for my editing so i don't have the accidental ctrl-q anymore, in fact i had almost forgotten until reading this post.

But for someone unaware it may be seen as a bug because people may expect a confirmation before exiting an app especially if it happens by accident. Honestly i don't know because i don't expect it when i use an app on the phone or the tablet.
Title: Re: Feature request
Post by: fish on September 12, 2018, 01:28:24 AM
Great job on this one eumagga0x2a, I haven't tried this update yet but it appears to not only cover the occasional accidental stray mouse click but also adds a useful feature.