Add on startup options to show maximized or minimized

This commit is contained in:
Jonas Kvinge
2020-06-18 21:46:36 +02:00
parent 3b58c02db0
commit d3463250a9
5 changed files with 101 additions and 45 deletions

View File

@@ -106,13 +106,6 @@ class MainWindow : public QMainWindow, public PlatformInterface {
static const char *kSettingsGroup;
static const char *kAllFilesFilterSpec;
// Don't change the values
enum StartupBehaviour {
Startup_Remember = 1,
Startup_AlwaysShow = 2,
Startup_AlwaysHide = 3,
};
void SetHiddenInTray(const bool hidden);
void CommandlineOptionsReceived(const CommandlineOptions& options);
@@ -358,8 +351,9 @@ class MainWindow : public QMainWindow, public PlatformInterface {
QTimer *track_slider_timer_;
QSettings settings_;
bool initialised_;
bool initialized_;
bool was_maximized_;
bool was_minimized_;
bool playing_widget_;
BehaviourSettingsPage::AddBehaviour doubleclick_addmode_;
BehaviourSettingsPage::PlayBehaviour doubleclick_playmode_;