chore: set minimum width to 280
This commit is contained in:
parent
a48e0797d4
commit
b4f8d4ed18
2 changed files with 3 additions and 5 deletions
|
|
@ -149,7 +149,7 @@ impl cosmic::Application for SettingsApp {
|
|||
|
||||
(
|
||||
app,
|
||||
cosmic::command::message(cosmic::app::message::app(Message::DelayedInit(active_id))),
|
||||
cosmic::command::message(Message::DelayedInit(active_id)),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -449,9 +449,7 @@ impl cosmic::Application for SettingsApp {
|
|||
// It is necessary to delay init to allow time for the page sender to be initialized
|
||||
Message::DelayedInit(active_id) => {
|
||||
if self.page_sender.is_none() {
|
||||
return cosmic::command::message(cosmic::app::message::app(
|
||||
Message::DelayedInit(active_id),
|
||||
));
|
||||
return cosmic::command::message(Message::DelayedInit(active_id));
|
||||
}
|
||||
|
||||
return self.activate_page(active_id);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ pub fn main() -> color_eyre::Result<()> {
|
|||
let args = Args::parse();
|
||||
|
||||
let settings = cosmic::app::Settings::default()
|
||||
.size_limits(Limits::NONE.min_width(400.0).min_height(300.0))
|
||||
.size_limits(Limits::NONE.min_width(280.0).min_height(300.0))
|
||||
.exit_on_close(false);
|
||||
|
||||
cosmic::app::run_single_instance::<app::SettingsApp>(settings, args)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue