Skip to content

Commit

Permalink
Fix presenting the window when recording stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohelm97 committed Dec 15, 2018
1 parent a4d698f commit 45b32cd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You'll need the following dependencies:
* libgstreamer1.0-dev
* valac

Run `meson` to configure the build environment and then `ninja` to build and run automated tests
Run `meson` to configure the build environment and then `ninja` to build and install

meson build --prefix=/usr
cd build
Expand Down
Binary file modified data/screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ namespace ScreenRecorder {
manager.bind("<Ctrl><Shift>R", () => {
if (recording) {
stop_recording ();
present ();
} else {
record_btn.clicked ();
}
Expand Down Expand Up @@ -316,6 +315,7 @@ namespace ScreenRecorder {

void stop_recording () {
ffmpegwrapper.stop();
present ();
var save_dialog = new SaveDialog (tmpfilepath, this, last_recording_width, last_recording_height);
save_dialog.show_all ();
grid.set_sensitive (true);
Expand Down
2 changes: 1 addition & 1 deletion src/SaveDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ namespace ScreenRecorder {
add_button (_("Cancel"), 0);

var save_original_btn = add_button (_("Save Original"), 1);
save_original_btn.sensitive = (format_cmb.get_active_text () != "gif");

save_btn = add_button (_("Save Renderd"), 2) as Gtk.Button;
save_btn.get_style_context ().add_class (Gtk.STYLE_CLASS_SUGGESTED_ACTION);

settings.bind ("format", format_cmb, "text_value", GLib.SettingsBindFlags.DEFAULT);
format_cmb.sensitive = false;
save_original_btn.sensitive = (format_cmb.get_active_text () != "gif");
location.selection_changed.connect (() => {
SList<string> uris = location.get_uris ();
foreach (unowned string uri in uris) {
Expand Down

0 comments on commit 45b32cd

Please sign in to comment.