Skip to content

Commit afd1564

Browse files
committed
Exit on cancel
1 parent 944abd6 commit afd1564

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

AppImageUpdate.AppDir/AppRun

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
HERE="$(dirname "$(readlink -f "${0}")")"
4-
4+
cd "${HERE}/usr/"
55
export LD_LIBRARY_PATH="${HERE}/usr/lib/:${LD_LIBRARY_PATH}"
66
export PATH="${HERE}/usr/bin:${PATH}"
77
exec "${HERE}/usr/bin/appimageupdate" "$@"
8+
cd -

appimageupdategui/main.vala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ static void on_open_clicked() {
2828
if (file_chooser.run () == ResponseType.ACCEPT) {
2929
open_file(file_chooser.get_filename ());
3030
}
31-
32-
print("FOOOOOOOOO");
33-
window_main.destroy();
34-
file_chooser.destroy();
35-
Posix.exit(0);
31+
else {
32+
Posix.exit(0);
33+
}
34+
window_main.destroy();
35+
file_chooser.destroy();
3636
}
3737

3838
/* Handle about click event */

0 commit comments

Comments
 (0)