Skip to content

Commit 66973eb

Browse files
Implement Preload for MainWindow
1 parent 86b8107 commit 66973eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/front_end/main_window.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <memory>
88

99
#include "include/about_widget.hxx"
10+
#include "include/main_window_preload.hxx"
1011
#include "include/setting_widget.hxx"
1112
#include "include/table_widget.hxx"
1213

@@ -17,6 +18,7 @@ using Self = MainWindow;
1718

1819
Self::MainWindow() {
1920
main_window = make_unique<QMainWindow>();
21+
main_window_preload = make_unique<MainWindowPreload>();
2022
auto central_w = make_unique<QWidget>();
2123
auto layout_w = make_unique<QGridLayout>(central_w.get());
2224

@@ -29,6 +31,7 @@ Self::MainWindow() {
2931
Self *Self::init_main_window() {
3032
main_window->setMinimumSize(MIN_WIDTH, MIN_HEIGHT);
3133
main_window->setWindowTitle("Lazyboard");
34+
main_window_preload->create_default_config(main_window.get());
3235
this->front_end_show();
3336
main_window->show();
3437

0 commit comments

Comments
 (0)