Skip to content

Commit

Permalink
fix: Remove conflicting modal property on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Apr 28, 2023
1 parent 1183673 commit 7d172d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
15 changes: 1 addition & 14 deletions lib/Models/Window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,11 @@ public class He.Window : Gtk.Window {
}
set {
_parent = value;
set_modal(value != null);
set_transient_for (value);
}
}

private new bool _modal;
/**
* If this is a modal window.
*/
public new bool modal {
get {
return this.get_modal ();
}
set {
_modal = value;
set_modal (_modal);
}
}

private bool _has_title;
/**
* If the window has a title bar.
Expand Down
14 changes: 0 additions & 14 deletions lib/Widgets/ApplicationWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ public class He.ApplicationWindow : Gtk.ApplicationWindow {

private new He.AppBar title = new He.AppBar ();

private new bool _modal;
/**
* Whether this window is a modal window.
*/
public new bool modal {
get {
return modal;
}
set {
_modal = value;
set_modal (_modal);
}
}

private bool _has_title;
/**
* Whether this window should display a title.
Expand Down

0 comments on commit 7d172d7

Please sign in to comment.