-
Notifications
You must be signed in to change notification settings - Fork 64
Save size, position for Main Window, Output Window on program start #630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -88,6 +89,7 @@ class FileWindowLoggerWindow : public QMainWindow{ | |||
FileWindowLogger& m_logger; | |||
QMenuBar* m_menubar; | |||
QTextEdit* m_text; | |||
bool m_pending_resize = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this get used? I see it set, but it's never read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I just copy pasted it without understanding its purpose.
I now understand what it's for and I don't need it at this time.
…. Fix bug with re-opening the Output window.
After pushing the initial PR, I realized there were a few other features I wanted to implement. |
uint32_t const screen_height = (uint32_t)screen_geometry.height(); | ||
uint32_t initial_x_pos_main = GlobalSettings::instance().WINDOW_SIZE->INITIAL_X_POS; | ||
uint32_t initial_y_pos_main = GlobalSettings::instance().WINDOW_SIZE->INITIAL_Y_POS; | ||
uint32_t move_x_main = std::min(initial_x_pos_main, screen_width-100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this goes negative? screen_width-100 < 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assumed that PA would be run on screens bigger than 100 pixels. But fair enough, I'll change it to screen_width*0.97
.
This PR should be done now. |
No description provided.