Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ public class Terminal.Application : Gtk.Application {

if (terminal == null) {
return;
} else if (!terminal.is_init_complete ()) {
terminal.set_init_complete ();
return;
}

var notification_title = _("Process completed");
Expand Down
10 changes: 10 additions & 0 deletions src/Widgets/TerminalWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Terminal {
public string current_working_directory { get; private set; default = "";}
public string program_string { get; set; default = ""; }
static int terminal_id_counter = 0;
private bool init_complete;
public bool resized {get; set;}
public TabState tab_state { get; set; default = NONE; }

Expand Down Expand Up @@ -130,6 +131,7 @@ namespace Terminal {
construct {
pointer_autohide = true;
terminal_id = "%i".printf (terminal_id_counter++);
init_complete = false;

update_audible_bell ();
update_cursor_shape ();
Expand Down Expand Up @@ -1009,6 +1011,14 @@ namespace Terminal {
font_scale = 1.0;
}

public bool is_init_complete () {
return init_complete;
}

public void set_init_complete () {
init_complete = true;
}

private bool on_drop (Value val, double x, double y) {
var uris = Uri.list_extract_uris (val.dup_string ());
string path;
Expand Down