Skip to content

Commit ab0005a

Browse files
authored
Update MainWindow.vala
1 parent 87ebe6f commit ab0005a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/MainWindow.vala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ namespace jorts {
4646
private new jorts.StickyView view;
4747
private Gtk.ActionBar actionbar;
4848

49+
private jorts.SettingsPopover popover;
50+
4951
//public noteData data;
5052
public string title_name;
5153
public string theme;
@@ -134,13 +136,13 @@ namespace jorts {
134136
delete_item.height_request = 32;
135137
delete_item.add_css_class("stickybar_button");
136138

137-
var popover = new SettingsPopover (this.theme);
139+
var this.popover = new SettingsPopover (this.theme);
138140

139-
popover.theme_changed.connect ((selected) => {
141+
this.popover.theme_changed.connect ((selected) => {
140142
this.update_theme(selected);
141143
});
142144

143-
popover.zoom_changed.connect ((zoomkind) => {
145+
this.popover.zoom_changed.connect ((zoomkind) => {
144146
if (zoomkind == "zoom_in") {
145147
this.zoom_in();
146148
} else if (zoomkind == "zoom_out") {
@@ -253,6 +255,7 @@ namespace jorts {
253255
this.remove_css_class (this.zoom.to_string());
254256
this.zoom = zoom;
255257
this.add_css_class (this.zoom.to_string());
258+
this.popover.set_zoomlevel(zoom);
256259
}
257260

258261

0 commit comments

Comments
 (0)